From f68b099dbf3abf1f7f13e8327f535772622744af Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Sun, 4 Jun 2023 13:38:21 +0200 Subject: fix needle points for windows (#2337) --- lib/gui/simulator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/gui/simulator.py b/lib/gui/simulator.py index 92952ca2..78138fc8 100644 --- a/lib/gui/simulator.py +++ b/lib/gui/simulator.py @@ -450,7 +450,7 @@ class DrawingPanel(wx.Panel): if self.control_panel.nppBtn.GetValue(): npp_pen = wx.Pen(pen.GetColour(), width=int(0.5 * PIXELS_PER_MM * self.PIXEL_DENSITY)) canvas.SetPen(npp_pen) - canvas.StrokeLineSegments(stitches, stitches) + canvas.StrokeLineSegments(stitches, [(stitch[0] + 0.001, stitch[1]) for stitch in stitches]) def clear(self): dc = wx.ClientDC(self) -- cgit v1.2.3