Spreadsheet: Issue #2388: The SheetObserver should ignore changed properties that don't have a name.

This commit is contained in:
Eivind Kvedalen 2016-01-03 10:05:03 +01:00
parent 48b699071c
commit d53cb8146e

View File

@ -70,12 +70,13 @@ void SheetObserver::slotDeletedObject(const DocumentObject &Obj)
void SheetObserver::slotChangedObject(const DocumentObject &Obj, const Property &Prop)
{
const char * name = Obj.getPropertyName(&Prop);
assert(name != 0);
if (&Prop == &Obj.Label)
sheet->renamedDocumentObject(&Obj);
else {
const char * name = Obj.getPropertyName(&Prop);
if (name == 0)
return;
if (isUpdating.find(name) != isUpdating.end())
return;