Spreadsheet: Fixed bug with dangling pointer when a document object is deleted.
This commit is contained in:
@@ -1089,6 +1089,11 @@ void PropertySheet::renamedDocument(const App::Document * doc)
|
||||
}
|
||||
}
|
||||
|
||||
void PropertySheet::deletedDocumentObject(const App::DocumentObject *docObj)
|
||||
{
|
||||
docDeps.erase(const_cast<App::DocumentObject*>(docObj));
|
||||
}
|
||||
|
||||
void PropertySheet::documentSet()
|
||||
{
|
||||
documentName[owner->getDocument()] = owner->getDocument()->Label.getValue();
|
||||
|
||||
Reference in New Issue
Block a user