Salome HOME
Task #3231: Sketcher Offset of a curve
[modules/shaper.git] / src / Model / Model_AttributeIntArray.cpp
index 9db430b22cb73ea09c31581b303c387b2e81eef2..d6602bba7ade5d9c5900eaa945753209c49a21c3 100644 (file)
@@ -74,7 +74,7 @@ void Model_AttributeIntArray::setValue(const int theIndex,
                                        const int theValue,
                                        bool sendUpdated)
 {
-  if (myArray->Value(theIndex) != theValue) {
+  if (!isInitialized() || myArray->Value(theIndex) != theValue) {
     setInitialized();
     myArray->SetValue(theIndex, theValue);
     if (sendUpdated)