X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModel%2FModel_AttributeIntArray.cpp;h=d6602bba7ade5d9c5900eaa945753209c49a21c3;hb=3ce3e69a217055142b03d67add35d054979a6340;hp=f933ad261408582eeb7b93f71b5267056377737a;hpb=a894060cf7f5ead6fa92d2f151e9f60712dc7a2f;p=modules%2Fshaper.git diff --git a/src/Model/Model_AttributeIntArray.cpp b/src/Model/Model_AttributeIntArray.cpp index f933ad261..d6602bba7 100644 --- a/src/Model/Model_AttributeIntArray.cpp +++ b/src/Model/Model_AttributeIntArray.cpp @@ -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);