From f7748f0f46ca87b7f8c1fd319e3737e902f1bae8 Mon Sep 17 00:00:00 2001 From: George Steel Date: Sat, 8 Oct 2022 20:06:38 -0400 Subject: fix closed-loop problem in wx simulator --- lib/gui/simulator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/gui/simulator.py') diff --git a/lib/gui/simulator.py b/lib/gui/simulator.py index d031590b..1cc7066e 100644 --- a/lib/gui/simulator.py +++ b/lib/gui/simulator.py @@ -381,13 +381,13 @@ class DrawingPanel(wx.Panel): if stitch + len(stitches) < self.current_stitch: stitch += len(stitches) if len(stitches) > 1: - canvas.DrawLines(stitches) + canvas.StrokeLines(stitches) self.draw_needle_penetration_points(canvas, pen, stitches) last_stitch = stitches[-1] else: stitches = stitches[:self.current_stitch - stitch] if len(stitches) > 1: - canvas.DrawLines(stitches) + canvas.StrokeLines(stitches) self.draw_needle_penetration_points(canvas, pen, stitches) last_stitch = stitches[-1] break -- cgit v1.2.3