Allow autoscale() with zero height or width
Commit 6e7e6f9 stopped the function from running if width or height was zero, this commit reverts that change. This commit also makes the resulting canvas 0x0 if autoscale is called with zero. By adding this special case we can avoid division by zero in the calculations.pull/36/head
parent
46b7d1db95
commit
12565dc4ac
Loading…
Reference in New Issue