diff --git a/src/App/DocumentObject.cpp b/src/App/DocumentObject.cpp index 667402b811..3d903f8bb2 100644 --- a/src/App/DocumentObject.cpp +++ b/src/App/DocumentObject.cpp @@ -693,7 +693,7 @@ void DocumentObject::setDocument(App::Document* doc) bool DocumentObject::removeDynamicProperty(const char* name) { - if (!_pDoc) + if (!_pDoc || testStatus(ObjectStatus::Destroy)) return false; Property* prop = getDynamicPropertyByName(name);