From 42fdbe83d7ff5111aee204238b7bc895cefebede Mon Sep 17 00:00:00 2001 From: Isaiah Odhner Date: Sat, 22 Apr 2023 21:57:58 -0400 Subject: [PATCH] Fix unused parameter to erase_region Why wasn't this reported? --- paint.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/paint.py b/paint.py index d12aecf..cb4ea75 100644 --- a/paint.py +++ b/paint.py @@ -1185,10 +1185,9 @@ class PaintApp(App[None]): # Momentarily masquerading makes me mildly mad. original_tool = self.selected_tool self.selected_tool = Tool.eraser - sel = self.image.selection - for x in range(sel.region.width): - for y in range(sel.region.height): - self.stamp_char(x + sel.region.x, y + sel.region.y) + for x in range(region.width): + for y in range(region.height): + self.stamp_char(x + region.x, y + region.y) self.selected_tool = original_tool def draw_current_polyline(self) -> Region: