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

@@ -60,6 +60,7 @@ void SheetObserver::slotCreatedObject(const DocumentObject &Obj)
void SheetObserver::slotDeletedObject(const DocumentObject &Obj)
{
sheet->invalidateDependants(&Obj);
sheet->deletedDocumentObject(&Obj);
}
/**