mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-10 00:20:57 +03:00
Fix bad merge -- undoes minor speedup of copy instead of crop
This commit is contained in:
parent
228c5bb292
commit
fdc6e149fb
|
@ -1058,9 +1058,6 @@ class Image(object):
|
||||||
|
|
||||||
x0, y0, x1, y1 = map(int, map(round, box))
|
x0, y0, x1, y1 = map(int, map(round, box))
|
||||||
|
|
||||||
if x0 == 0 and y0 == 0 and (x1, y1) == self.size:
|
|
||||||
return self.copy()
|
|
||||||
|
|
||||||
if x1 < x0:
|
if x1 < x0:
|
||||||
x1 = x0
|
x1 = x0
|
||||||
if y1 < y0:
|
if y1 < y0:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user