Fix erroneous condition which was never true

This commit is contained in:
Alexander 2017-09-01 13:32:37 +03:00
parent c59529d28d
commit d4b2fa7348

View File

@ -1426,7 +1426,7 @@ class Image(object):
box = dest + (dest[0] + overlay.width, dest[1] + overlay.height) box = dest + (dest[0] + overlay.width, dest[1] + overlay.height)
# destination image. don't copy if we're using the whole image. # destination image. don't copy if we're using the whole image.
if dest == (0,0) + self.size: if box == (0,0) + self.size:
background = self background = self
else: else:
background = self.crop(box) background = self.crop(box)