- Cutout Tool - fixed mouse bites feature in case of using a Geometry object and Freeform cutout

- Cutout Tool - can do cutouts on multigeo Geometry objects: it will automatically select the geometry of first tool
- Geometry Editor - fixed exception raised when trying to move and there is no shape to move
This commit is contained in:
Marius Stanciu
2020-08-30 00:05:52 +03:00
parent c95625beac
commit 26ac02e484
3 changed files with 20 additions and 3 deletions

View File

@@ -4378,8 +4378,12 @@ class AppGeoEditor(QtCore.QObject):
self.on_tool_select('move')
def on_move_click(self):
try:
x, y = self.snap(self.x, self.y)
except TypeError:
return
self.on_move()
self.active_tool.set_origin(self.snap(self.x, self.y))
self.active_tool.set_origin((x, y))
def on_copy_click(self):
if not self.selected: