mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-27 17:54:32 +03:00
added check to prevent arcs > 360 degrees
This commit is contained in:
parent
b0ec525976
commit
d0ae5bc75e
|
@ -772,6 +772,11 @@ ellipse(Imaging im, int x0, int y0, int x1, int y1,
|
|||
while (end < start)
|
||||
end += 360;
|
||||
|
||||
if (end - start > 360) {
|
||||
/* no need to go in loops */
|
||||
end = start + 361;
|
||||
}
|
||||
|
||||
if (mode != ARC && fill) {
|
||||
|
||||
/* Build edge list */
|
||||
|
|
Loading…
Reference in New Issue
Block a user