change isDeleting to isUnsetting

- DocumentObject::isDeleting was changed to isRemoving.
  This commit just prevents future confusion.
This commit is contained in:
WandererFan
2017-09-17 11:50:52 -04:00
committed by Yorik van Havre
parent 4b3ab9e74e
commit 4b8d04f528
8 changed files with 19 additions and 32 deletions

View File

@@ -175,7 +175,7 @@ void DrawProjGroupItem::unsetupObject()
if (getPGroup() != nullptr) {
if (getPGroup()->hasProjection(Type.getValueAsString()) ) {
if ((getPGroup()->getAnchor() == this) &&
!getPGroup()->isDeleting() ) {
!getPGroup()->isUnsetting() ) {
Base::Console().Warning("Warning - DPG (%s/%s) may be corrupt - Anchor deleted\n",
getPGroup()->getNameInDocument(),getPGroup()->Label.getValue());
getPGroup()->Anchor.setValue(nullptr); //this catches situation where DPGI is deleted w/o DPG::removeProjection