From: spo Date: Fri, 3 Jul 2015 07:29:52 +0000 (+0300) Subject: Call sendAttributeUpdated() after recalculation of Double, Point, Point2D expressions. X-Git-Tag: V_1.3.0~10 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=67a1b1420f5e6fa0bb1bb422e3b8bc290d699ce7;p=modules%2Fshaper.git Call sendAttributeUpdated() after recalculation of Double, Point, Point2D expressions. --- diff --git a/src/GeomData/GeomData_Point.cpp b/src/GeomData/GeomData_Point.cpp index 4fcf2735b..894550ba8 100644 --- a/src/GeomData/GeomData_Point.cpp +++ b/src/GeomData/GeomData_Point.cpp @@ -72,9 +72,9 @@ void GeomData_Point::setText(const std::string& theX, myTextArray->SetValue(0, aX); myTextArray->SetValue(1, aY); myTextArray->SetValue(2, aZ); - owner()->data()->sendAttributeUpdated(this); // Send it to evaluator to convert into the double and store in the attribute ModelAPI_AttributeEvalMessage::send(owner()->data()->attribute(id()), this); + owner()->data()->sendAttributeUpdated(this); } } diff --git a/src/GeomData/GeomData_Point2D.cpp b/src/GeomData/GeomData_Point2D.cpp index 9b21c8a5c..8bb2eaa31 100644 --- a/src/GeomData/GeomData_Point2D.cpp +++ b/src/GeomData/GeomData_Point2D.cpp @@ -60,9 +60,9 @@ void GeomData_Point2D::setText(const std::string& theX, myTextArray->Value(1) != aY) { myTextArray->SetValue(0, aX); myTextArray->SetValue(1, aY); - owner()->data()->sendAttributeUpdated(this); // Send it to evaluator to convert into the double and store in the attribute ModelAPI_AttributeEvalMessage::send(owner()->data()->attribute(id()), this); + owner()->data()->sendAttributeUpdated(this); } } diff --git a/src/Model/Model_AttributeDouble.cpp b/src/Model/Model_AttributeDouble.cpp index 6128aa892..009de2b8e 100644 --- a/src/Model/Model_AttributeDouble.cpp +++ b/src/Model/Model_AttributeDouble.cpp @@ -51,10 +51,9 @@ void Model_AttributeDouble::setText(const std::string& theValue) TCollection_ExtendedString aValue(theValue.c_str()); 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 ModelAPI_AttributeEvalMessage::send(owner()->data()->attribute(id()), this); + owner()->data()->sendAttributeUpdated(this); } }