image: fix wrong check for rect bounds in copy_image().

This commit is contained in:
Wind Yuan 2013-04-27 15:15:49 +08:00 committed by Gwenole Beauchesne
parent 9f410af4a3
commit b3525c824a

View file

@ -923,9 +923,9 @@ copy_image(
if (rect) {
if (rect->x >= src_image->width ||
rect->x + src_image->width > src_image->width ||
rect->x + rect->width > src_image->width ||
rect->y >= src_image->height ||
rect->y + src_image->height > src_image->height)
rect->y + rect->height > src_image->height)
return FALSE;
}
else {