mirror of
https://github.com/1j01/textual-paint.git
synced 2024-12-22 06:11:37 +03:00
Fix unused parameter to erase_region
Why wasn't this reported?
This commit is contained in:
parent
505605c660
commit
42fdbe83d7
7
paint.py
7
paint.py
@ -1185,10 +1185,9 @@ class PaintApp(App[None]):
|
|||||||
# Momentarily masquerading makes me mildly mad.
|
# Momentarily masquerading makes me mildly mad.
|
||||||
original_tool = self.selected_tool
|
original_tool = self.selected_tool
|
||||||
self.selected_tool = Tool.eraser
|
self.selected_tool = Tool.eraser
|
||||||
sel = self.image.selection
|
for x in range(region.width):
|
||||||
for x in range(sel.region.width):
|
for y in range(region.height):
|
||||||
for y in range(sel.region.height):
|
self.stamp_char(x + region.x, y + region.y)
|
||||||
self.stamp_char(x + sel.region.x, y + sel.region.y)
|
|
||||||
self.selected_tool = original_tool
|
self.selected_tool = original_tool
|
||||||
|
|
||||||
def draw_current_polyline(self) -> Region:
|
def draw_current_polyline(self) -> Region:
|
||||||
|
Loading…
Reference in New Issue
Block a user