Skip to content

Commit

Permalink
Fem: [skip ci] fix bug in ViewProviderFemPostFunction::attach
Browse files Browse the repository at this point in the history
When applying an action on a node its reference count must be > 0
  • Loading branch information
wwmayer committed Jul 7, 2020
1 parent 3638d60 commit f7dfc35
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Mod/Fem/Gui/ViewProviderFemPostFunction.cpp
Expand Up @@ -178,6 +178,7 @@ void ViewProviderFemPostFunction::attach(App::DocumentObject *pcObj)
m_manip->ref();

SoSeparator* pcEditNode = new SoSeparator();
pcEditNode->ref();

pcEditNode->addChild(color);
pcEditNode->addChild(m_transform);
Expand Down Expand Up @@ -206,6 +207,7 @@ void ViewProviderFemPostFunction::attach(App::DocumentObject *pcObj)

addDisplayMaskMode(pcEditNode, "Default");
setDisplayMaskMode("Default");
pcEditNode->unref();
}

bool ViewProviderFemPostFunction::doubleClicked(void) {
Expand Down

0 comments on commit f7dfc35

Please sign in to comment.