kopia lustrzana https://github.com/inkstitch/inkstitch
fix closed-loop problem in wx simulator
rodzic
b2bde4f959
commit
f7748f0f46
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue