Salome HOME
Fix for #767: correct the internal history structure for nested features
[modules/shaper.git] / src / Model / Model_AttributeString.cpp
index 53650b1202b3cfa9eb279c5165d9f3d95acfbb35..d2bd6191aa87a8aa9dea0864c05792a5c776c577 100644 (file)
@@ -13,8 +13,6 @@
 #include <Standard_TypeDef.hxx>
 #include <TCollection_AsciiString.hxx>
 #include <TCollection_ExtendedString.hxx>
-#include <TDataStd_Integer.hxx>
-#include <TDataStd_Name.hxx>
 
 #include <string>
 
@@ -35,7 +33,7 @@ std::string Model_AttributeString::value()
 Model_AttributeString::Model_AttributeString(TDF_Label& theLabel)
 {
   // check the attribute could be already presented in this doc (after load document)
-  myIsInitialized = theLabel.FindAttribute(TDataStd_Integer::GetID(), myString) == Standard_True;
+  myIsInitialized = theLabel.FindAttribute(TDataStd_Name::GetID(), myString) == Standard_True;
   if (!myIsInitialized) {
     // create attribute: not initialized by value yet, just empty string
     myString = TDataStd_Name::Set(theLabel, TCollection_ExtendedString());