diff --git a/src/PIL/ImageDraw.py b/src/PIL/ImageDraw.py index 4f0144d35..87ee4de0a 100644 --- a/src/PIL/ImageDraw.py +++ b/src/PIL/ImageDraw.py @@ -388,7 +388,7 @@ def floodfill(image, xy, value, border=None, thresh=0): new_edge.add((s, t)) full_edge.add((s, t)) full_edge = edge - edge = newedge + edge = new_edge def _color_diff(rgb1, rgb2):