X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModel%2FModel_AttributeDouble.cpp;h=0736eddc0570d7a4611121da979160655e65819f;hb=refs%2Ftags%2FV_1.2.1;hp=3ef3e3c41c1510d217a9efdb6aed4621f4bc4b61;hpb=f3a0d516413a9cd48c40d6094339606ce00bb4db;p=modules%2Fshaper.git diff --git a/src/Model/Model_AttributeDouble.cpp b/src/Model/Model_AttributeDouble.cpp index 3ef3e3c41..0736eddc0 100644 --- a/src/Model/Model_AttributeDouble.cpp +++ b/src/Model/Model_AttributeDouble.cpp @@ -47,12 +47,9 @@ void Model_AttributeDouble::setText(const std::string& theValue) if (myText->Get() != aValue) { myText->Set(aValue); owner()->data()->sendAttributeUpdated(this); + // Send it to evaluator to convert into the double and store in the attribute - static Events_ID anId = ModelAPI_AttributeEvalMessage::eventId(); - std::shared_ptr aMessage = - std::shared_ptr(new ModelAPI_AttributeEvalMessage(anId, this)); - aMessage->setAttribute(owner()->data()->attribute(id())); // to get shared pointer to this - Events_Loop::loop()->send(aMessage); + ModelAPI_AttributeEvalMessage::send(owner()->data()->attribute(id()), this); } }