Floor the size

This commit is contained in:
orlnub123 2020-02-08 23:48:30 +00:00 committed by Andrew Murray
parent 6d3c7d6941
commit 2e716de63d

View File

@ -2236,7 +2236,7 @@ class Image:
:returns: None
"""
x, y = size
x, y = map(math.floor, size)
if x >= self.width and y >= self.height:
return