X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FModel%2FModel_AttributeIntArray.cpp;h=15e84ece98aadfd62ea0d9ceafc44db141318904;hb=bdbfb368d71ed11cc0391354a7d86c880cd94949;hp=c01107332b47d371c7d6f7678bafd0c2aa7ca4a6;hpb=323ddeaed96f1be1a1071a7facc924085cd65d39;p=modules%2Fshaper.git diff --git a/src/Model/Model_AttributeIntArray.cpp b/src/Model/Model_AttributeIntArray.cpp index c01107332..15e84ece9 100644 --- a/src/Model/Model_AttributeIntArray.cpp +++ b/src/Model/Model_AttributeIntArray.cpp @@ -71,7 +71,12 @@ int Model_AttributeIntArray::value(const int theIndex) Model_AttributeIntArray::Model_AttributeIntArray(TDF_Label& theLabel) { myLab = theLabel; + reinit(); +} + +void Model_AttributeIntArray::reinit() +{ // check the attribute could be already presented in this doc (after load document) - myIsInitialized = + myIsInitialized = myLab.FindAttribute(TDataStd_IntegerArray::GetID(), myArray) == Standard_True; }