]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Debug of string attribute: reproduced on open of document and planes-method of creati...
authormpv <mpv@opencascade.com>
Mon, 13 Apr 2015 07:16:07 +0000 (10:16 +0300)
committermpv <mpv@opencascade.com>
Mon, 13 Apr 2015 07:16:07 +0000 (10:16 +0300)
src/Model/Model_AttributeString.cpp
src/Model/Model_AttributeString.h

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());
index e99f21763a4c658d53439b469c2665d28f55e070..2d1ba634dea54673f8a62b93e388d4b1413c463d 100644 (file)
@@ -11,7 +11,7 @@
 #include <ModelAPI_AttributeString.h>
 
 #include <TDF_Label.hxx>
-#include <Handle_TDataStd_Name.hxx>
+#include <TDataStd_Name.hxx>
 
 #include <string>