From c3fe5d43137aa83acd5c8345cd997152b4a54ad9 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Thu, 10 Nov 2016 19:55:56 +1100 Subject: [PATCH] Changed behaviour of default box argument for paste method to match docs --- PIL/Image.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/PIL/Image.py b/PIL/Image.py index 000757594..655aa3d07 100644 --- a/PIL/Image.py +++ b/PIL/Image.py @@ -1307,8 +1307,7 @@ class Image(object): box = None if box is None: - # cover all of self - box = (0, 0) + self.size + box = (0, 0) if len(box) == 2: # upper left corner given; get size from image or mask @@ -1321,7 +1320,7 @@ class Image(object): raise ValueError( "cannot determine region size; use 4-item box" ) - box = box + (box[0]+size[0], box[1]+size[1]) + box += (box[0]+size[0], box[1]+size[1]) if isStringType(im): from PIL import ImageColor