Salome HOME
Bos #24055 [CEA 24054] Editing ExtrusionCut object updates other.
[modules/shaper.git] / src / Model / Model_AttributeIntArray.cpp
index f933ad261408582eeb7b93f71b5267056377737a..d6602bba7ade5d9c5900eaa945753209c49a21c3 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2019  CEA/DEN, EDF R&D
+// Copyright (C) 2014-2020  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -74,7 +74,8 @@ 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)
       owner()->data()->sendAttributeUpdated(this);