FCLabel behavior modified to match updated method based on PR discussion

This commit is contained in:
Ali Khalil
2022-04-18 09:18:17 +03:00
parent 5cc869c1fd
commit 84cdc87030
83 changed files with 641 additions and 363 deletions

View File

@@ -3521,10 +3521,14 @@ class MainGUI(QtWidgets.QMainWindow):
self.app.geo_editor.active_tool.rect_tool.length != 0.0 and \
self.app.geo_editor.active_tool.rect_tool.width != 0.0:
pass
elif self.app.geo_editor.active_tool.name in ['move', 'copy'] and \
elif self.app.geo_editor.active_tool.name == 'move' and \
self.app.geo_editor.active_tool.move_tool.length != 0.0 and \
self.app.geo_editor.active_tool.move_tool.width != 0.0:
pass
elif self.app.geo_editor.active_tool.name == 'copy' and \
self.app.geo_editor.active_tool.copy_tool.length != 0.0 and \
self.app.geo_editor.active_tool.copy_tool.width != 0.0:
pass
else:
self.app.geo_editor.active_tool.click(
self.app.geo_editor.snap(self.app.geo_editor.x, self.app.geo_editor.y))