X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModel%2FModel_AttributeString.cpp;h=72eb091932cb241b7662ab9bab9047f64196f48a;hb=93d261c062c12388f4420043776e8ee19ddceaa0;hp=773a8bef919fbeaf61988b4080f8da2512d0e13b;hpb=8bb6d0093e663565a2144ca82f082effa766b12b;p=modules%2Fshaper.git diff --git a/src/Model/Model_AttributeString.cpp b/src/Model/Model_AttributeString.cpp index 773a8bef9..72eb09193 100644 --- a/src/Model/Model_AttributeString.cpp +++ b/src/Model/Model_AttributeString.cpp @@ -37,6 +37,11 @@ std::string Model_AttributeString::value() Model_AttributeString::Model_AttributeString(TDF_Label& theLabel) { myLab = theLabel; + reinit(); +} + +void Model_AttributeString::reinit() +{ // check the attribute could be already presented in this doc (after load document) - myIsInitialized = theLabel.FindAttribute(TDataStd_Name::GetID(), myString) == Standard_True; + myIsInitialized = myLab.FindAttribute(TDataStd_Name::GetID(), myString) == Standard_True; }