summaryrefslogtreecommitdiff
path: root/lib/gui/simulator/drawing_panel.py
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2025-02-11 18:52:01 +0100
committerGitHub <noreply@github.com>2025-02-11 18:52:01 +0100
commitcee9aa0d1d6f0173643e6480b4e11fc1f27f0ffb (patch)
tree249897ecbc6942e404088a22fd7e7dd822896b60 /lib/gui/simulator/drawing_panel.py
parentb7f5e94fd2c39bf386fe116ac172402ca99dce5e (diff)
lettering tools: remember last font (#3498)
Diffstat (limited to 'lib/gui/simulator/drawing_panel.py')
-rw-r--r--lib/gui/simulator/drawing_panel.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gui/simulator/drawing_panel.py b/lib/gui/simulator/drawing_panel.py
index 1587ecfa..4a07bfd7 100644
--- a/lib/gui/simulator/drawing_panel.py
+++ b/lib/gui/simulator/drawing_panel.py
@@ -186,13 +186,13 @@ class DrawingPanel(wx.Panel):
if len(stitches) > 1:
self.draw_stitch_lines(canvas, pen, stitches, jumps)
self.draw_needle_penetration_points(canvas, pen, stitches)
- last_stitch = stitches[-1]
+ last_stitch = stitches[-1]
else:
stitches = stitches[:int(self.current_stitch) - stitch]
if len(stitches) > 1:
self.draw_stitch_lines(canvas, pen, stitches, jumps)
self.draw_needle_penetration_points(canvas, pen, stitches)
- last_stitch = stitches[-1]
+ last_stitch = stitches[-1]
break
if last_stitch: