Spreadsheet: Fixed bug with dangling pointer when a document object is deleted.

This commit is contained in:
Eivind Kvedalen
2015-08-04 11:35:10 +02:00
committed by wmayer
parent ffa304e4f9
commit b65af55fc1
3 changed files with 8 additions and 0 deletions

View File

@@ -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();