DocumentObject: Don't emit signal if Label hasn't actually changed.

This commit is contained in:
Eivind Kvedalen 2015-12-19 00:48:24 +01:00 committed by wmayer
parent 19fd2c3195
commit 83d221e161

View File

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