X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FModel%2FModel_AttributeDouble.cpp;h=13b4c97c650b8984971a2e0fdb7689432304a463;hb=103633b49d995fe6001e226ccdcc8ca48b9cb4e6;hp=23e15f0e1ad9457e92570a83dec685aa67ed0314;hpb=de0f49686ec6655ddc5816c8fa5383964662aec4;p=modules%2Fshaper.git diff --git a/src/Model/Model_AttributeDouble.cpp b/src/Model/Model_AttributeDouble.cpp index 23e15f0e1..13b4c97c6 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(feature(), anEvent); + Events_Loop::loop()->send(aMsg); + } } double Model_AttributeDouble::value()