Salome HOME
Call sendAttributeUpdated() after recalculation of Double, Point, Point2D expressions.
authorspo <sergey.pokhodenko@opencascade.com>
Fri, 3 Jul 2015 07:29:52 +0000 (10:29 +0300)
committerspo <sergey.pokhodenko@opencascade.com>
Tue, 14 Jul 2015 12:55:49 +0000 (15:55 +0300)
src/GeomData/GeomData_Point.cpp
src/GeomData/GeomData_Point2D.cpp
src/Model/Model_AttributeDouble.cpp

index 4fcf2735b7c9ed0c1f400ec2c581e0d266529f8f..894550ba8728dc179ec0081c70f31d3eecb8a68b 100644 (file)
@@ -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);
   }
 }
 
index 9b21c8a5c7939acd39a4c86e8266082b1acb9ea6..8bb2eaa31b8b4065c8c5e80c2e0e8cd5932248dc 100644 (file)
@@ -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);
   }
 }
 
index 6128aa892674f49bb26b58b2e20c283df525aaaa..009de2b8e5441a30a779dbf35bfd338a4aea0a70 100644 (file)
@@ -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);
   }
 }