DocumentObject: Don't emit signal if Label hasn't actually changed.
This commit is contained in:
@@ -206,7 +206,7 @@ void DocumentObject::onChanged(const Property* prop)
|
||||
if (_pDoc)
|
||||
_pDoc->onChangedProperty(this,prop);
|
||||
|
||||
if (prop == &Label && _pDoc)
|
||||
if (prop == &Label && _pDoc && oldLabel != Label.getStrValue())
|
||||
_pDoc->signalRelabelObject(*this);
|
||||
|
||||
if (prop->getType() & Prop_Output)
|
||||
|
||||
Reference in New Issue
Block a user