Salome HOME
Issue #1764: The result of partition is not stored in a folder
[modules/shaper.git] / src / Model / Model_AttributeString.cpp
index 773a8bef919fbeaf61988b4080f8da2512d0e13b..72eb091932cb241b7662ab9bab9047f64196f48a 100644 (file)
@@ -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;
 }