Fix potential race when cancelling DPG creation

This commit is contained in:
WandererFan
2017-01-28 12:40:19 -05:00
parent 722b2d1c04
commit 49c2be14ba
3 changed files with 11 additions and 26 deletions

View File

@@ -168,7 +168,7 @@ void DrawProjGroupItem::unsetupObject()
!getGroup()->isDeleting() ) {
Base::Console().Warning("Warning - DPG (%s/%s) may be corrupt - Anchor deleted\n",
getGroup()->getNameInDocument(),getGroup()->Label.getValue());
getGroup()->Anchor.setValue(nullptr);
getGroup()->Anchor.setValue(nullptr); //this catches situation where DPGI is deleted w/o DPG::removeProjection
}
}
}