X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModel%2FModel_AttributeDouble.cpp;h=88b4352a56d288dd8b3b0c81a7acfdc28e5ce82f;hb=7f5d3b6de3d879b6a11389c06a6f183b2fa5a1b2;hp=23e15f0e1ad9457e92570a83dec685aa67ed0314;hpb=912b947536177180af5bd6d620d84e9ebc05be66;p=modules%2Fshaper.git diff --git a/src/Model/Model_AttributeDouble.cpp b/src/Model/Model_AttributeDouble.cpp index 23e15f0e1..88b4352a5 100644 --- a/src/Model/Model_AttributeDouble.cpp +++ b/src/Model/Model_AttributeDouble.cpp @@ -3,12 +3,19 @@ // Author: Mikhail PONIKAROV #include "Model_AttributeDouble.h" +#include "Model_Events.h" +#include using namespace std; void Model_AttributeDouble::setValue(const double theValue) { - myReal->Set(theValue); + if (myReal->Get() != theValue) { + myReal->Set(theValue); + static Events_ID anEvent = Events_Loop::eventByName(EVENT_FEATURE_UPDATED); + Model_FeatureUpdatedMessage aMsg(owner(), anEvent); + Events_Loop::loop()->send(aMsg); + } } double Model_AttributeDouble::value()