From 0e54d42c1b3232a6d41c8e55ec2dfea6bc7be867 Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Wed, 17 Jul 2019 14:56:20 +0300 Subject: [PATCH] - fixed issue in ToolMove regarding grid snapping recently introduced --- flatcamTools/ToolMove.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flatcamTools/ToolMove.py b/flatcamTools/ToolMove.py index a9957392..3c8e8893 100644 --- a/flatcamTools/ToolMove.py +++ b/flatcamTools/ToolMove.py @@ -97,7 +97,7 @@ class ToolMove(FlatCAMTool): pos_canvas = self.app.plotcanvas.vispy_canvas.translate_coords(event.pos) # if GRID is active we need to get the snapped positions - if self.app.grid_status() is True: + if self.app.grid_status() == True: pos = self.app.geo_editor.snap(pos_canvas[0], pos_canvas[1]) else: pos = pos_canvas @@ -117,7 +117,7 @@ class ToolMove(FlatCAMTool): self.delete_shape() # if GRID is active we need to get the snapped positions - if self.app.grid_status() is True: + if self.app.grid_status() == True: pos = self.app.geo_editor.snap(pos_canvas[0], pos_canvas[1]) else: pos = pos_canvas @@ -181,7 +181,7 @@ class ToolMove(FlatCAMTool): pos_canvas = self.app.plotcanvas.vispy_canvas.translate_coords(event.pos) # if GRID is active we need to get the snapped positions - if self.app.grid_status() is True: + if self.app.grid_status() == True: pos = self.app.geo_editor.snap(pos_canvas[0], pos_canvas[1]) else: pos = pos_canvas