mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 18:06:18 +03:00
Correct left boundary on the second stage
This commit is contained in:
parent
5fb44ab694
commit
8256b9bb7f
|
@ -53,6 +53,8 @@ ImagingGetBBox(Imaging im, int bbox[4], int alpha_only) {
|
||||||
for (x = 0; x < im->xsize; x++) \
|
for (x = 0; x < im->xsize; x++) \
|
||||||
if (im->image[y][x] & mask) { \
|
if (im->image[y][x] & mask) { \
|
||||||
has_data = 1; \
|
has_data = 1; \
|
||||||
|
if (x < bbox[0]) \
|
||||||
|
bbox[0] = x; \
|
||||||
bbox[3] = y + 1; \
|
bbox[3] = y + 1; \
|
||||||
break; \
|
break; \
|
||||||
} \
|
} \
|
||||||
|
|
Loading…
Reference in New Issue
Block a user