From 67a1b1420f5e6fa0bb1bb422e3b8bc290d699ce7 Mon Sep 17 00:00:00 2001 From: spo Date: Fri, 3 Jul 2015 10:29:52 +0300 Subject: [PATCH] Call sendAttributeUpdated() after recalculation of Double, Point, Point2D expressions. --- src/GeomData/GeomData_Point.cpp | 2 +- src/GeomData/GeomData_Point2D.cpp | 2 +- src/Model/Model_AttributeDouble.cpp | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) 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); } } -- 2.39.2