Draft: fix handling of MouseDelay
The MouseDelay sets a point value to None. In some cases this point was then still used resulting in attribute errors. See: https://github.com/FreeCAD/FreeCAD/issues/19531#issuecomment-2651341711
This commit is contained in:
@@ -158,6 +158,8 @@ class Rectangle(gui_base_original.Creator):
|
||||
if arg["Type"] == "SoKeyboardEvent":
|
||||
if arg["Key"] == "ESCAPE":
|
||||
self.finish()
|
||||
elif not self.ui.mouse:
|
||||
pass
|
||||
elif arg["Type"] == "SoLocation2Event": # mouse movement detection
|
||||
self.point, ctrlPoint, info = gui_tool_utils.getPoint(self, arg, noTracker=True)
|
||||
self.rect.update(self.point)
|
||||
|
||||
Reference in New Issue
Block a user