+ fix crash when closing sketch while external geometry handler is still active
This commit is contained in:
parent
6eee3c6146
commit
95bda08764
|
@ -3297,12 +3297,12 @@ void ViewProviderSketch::unsetEdit(int ModNum)
|
|||
ShowGrid.setValue(false);
|
||||
TightGrid.setValue(true);
|
||||
|
||||
edit->EditRoot->removeAllChildren();
|
||||
pcRoot->removeChild(edit->EditRoot);
|
||||
|
||||
if (edit->sketchHandler)
|
||||
deactivateHandler();
|
||||
|
||||
edit->EditRoot->removeAllChildren();
|
||||
pcRoot->removeChild(edit->EditRoot);
|
||||
|
||||
if (edit->visibleBeforeEdit)
|
||||
this->show();
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue
Block a user