Skip to content

Commit

Permalink
fix crash when switching to fullscreen, back to normal and closing th…
Browse files Browse the repository at this point in the history
…e sketcher
  • Loading branch information
wwmayer committed Sep 30, 2019
1 parent 12335c7 commit 19ac3ec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Mod/Sketcher/Gui/ViewProviderSketch.cpp
Expand Up @@ -5899,6 +5899,7 @@ void ViewProviderSketch::createEditInventorNodes(void)
assert(edit);

edit->EditRoot = new SoSeparator;
edit->EditRoot->ref();
edit->EditRoot->setName("Sketch_EditRoot");
pcRoot->addChild(edit->EditRoot);
edit->EditRoot->renderCaching = SoSeparator::OFF ;
Expand Down Expand Up @@ -6087,6 +6088,7 @@ void ViewProviderSketch::unsetEdit(int ModNum)

Gui::coinRemoveAllChildren(edit->EditRoot);
pcRoot->removeChild(edit->EditRoot);
edit->EditRoot->unref();

delete edit;
edit = 0;
Expand Down

0 comments on commit 19ac3ec

Please sign in to comment.