From cee9aa0d1d6f0173643e6480b4e11fc1f27f0ffb Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Tue, 11 Feb 2025 18:52:01 +0100 Subject: lettering tools: remember last font (#3498) --- lib/gui/simulator/drawing_panel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/gui/simulator/drawing_panel.py') 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: -- cgit v1.2.3