summaryrefslogtreecommitdiff
path: root/lib/gui/simulator.py
diff options
context:
space:
mode:
authorGeorge Steel <george.steel@gmail.com>2022-10-08 20:06:38 -0400
committerGeorge Steel <george.steel@gmail.com>2022-10-08 20:06:38 -0400
commitf7748f0f46ca87b7f8c1fd319e3737e902f1bae8 (patch)
tree500654f985b4ac9b67aca906c85a36494dcaef2b /lib/gui/simulator.py
parentb2bde4f95981104640fbbcf3cce0329c7f36aaba (diff)
fix closed-loop problem in wx simulator
Diffstat (limited to 'lib/gui/simulator.py')
-rw-r--r--lib/gui/simulator.py4
1 files changed, 2 insertions, 2 deletions
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