Spreadsheet: Issue #2388: The SheetObserver should ignore changed properties that don't have a name.
This commit is contained in:
parent
48b699071c
commit
d53cb8146e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user