App: fix crash on removing dynamic property
Related FreeCAD/FreeCAD#6840
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user