+ fix crash when closing sketch while external geometry handler is still active

This commit is contained in:
wmayer 2014-04-08 12:07:03 +02:00
parent 6eee3c6146
commit 95bda08764

View File

@ -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