From: mpv Date: Mon, 13 Apr 2015 07:16:07 +0000 (+0300) Subject: Debug of string attribute: reproduced on open of document and planes-method of creati... X-Git-Tag: V_1.1.0~43^2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=aa1db243a3047ceb5c64c11c5f5a9e74c7d5c39a;p=modules%2Fshaper.git Debug of string attribute: reproduced on open of document and planes-method of creation become invalid. --- diff --git a/src/Model/Model_AttributeString.cpp b/src/Model/Model_AttributeString.cpp index 53650b120..d2bd6191a 100644 --- a/src/Model/Model_AttributeString.cpp +++ b/src/Model/Model_AttributeString.cpp @@ -13,8 +13,6 @@ #include #include #include -#include -#include #include @@ -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()); diff --git a/src/Model/Model_AttributeString.h b/src/Model/Model_AttributeString.h index e99f21763..2d1ba634d 100644 --- a/src/Model/Model_AttributeString.h +++ b/src/Model/Model_AttributeString.h @@ -11,7 +11,7 @@ #include #include -#include +#include #include