VISU::Storable::TRestoringMap aMap;
_PTR(GenericAttribute) anAttr;
- if (!aSObj->FindAttribute(anAttr, "AttributeComment")) return;
+ if (!aSObj->FindAttribute(anAttr, "AttributeString")) return;
- _PTR(AttributeComment) aComment (anAttr);
+ _PTR(AttributeString) aComment (anAttr);
string aComm = aComment->Value();
QString strIn (aComm.c_str());
VISU::Storable::StrToMap(strIn, aMap);
CORBA::Object_var aCORBAObject = VISU::ClientSObjectToObject(aSObject);
if (CORBA::is_nil(aCORBAObject)) {
_PTR(GenericAttribute) anAttr;
- if (aSObject->FindAttribute(anAttr, "AttributeComment")) {
- _PTR(AttributeComment) aComment (anAttr);
+ if (aSObject->FindAttribute(anAttr, "AttributeString")) {
+ _PTR(AttributeString) aComment (anAttr);
string aComm = aComment->Value();
QString strIn (aComm.c_str());
VISU::Storable::TRestoringMap pMap;
if ( !aSObject )
continue;
_PTR(GenericAttribute) anAttr;
- if (aSObject->FindAttribute(anAttr, "AttributeComment")) {
- _PTR(AttributeComment) aComment (anAttr);
+ if (aSObject->FindAttribute(anAttr, "AttributeString")) {
+ _PTR(AttributeString) aComment (anAttr);
string aComm = aComment->Value();
QString strIn (aComm.c_str());
VISU::Storable::TRestoringMap pMap;
Storable::DataToStream(aStream,"mySubId",theSelection.mySubId);
_PTR(GenericAttribute) anAttr;
- anAttr = theStudyBuilder->FindOrCreateAttribute(aNewObj,"AttributeComment");
- _PTR(AttributeComment) aComment(anAttr);
+ anAttr = theStudyBuilder->FindOrCreateAttribute(aNewObj,"AttributeString");
+ _PTR(AttributeString) aComment(anAttr);
aComment->SetValue(aStream.str());
}
// To update selection
_PTR(GenericAttribute) anAttr;
- if(aChildSObject->FindAttribute(anAttr,"AttributeComment")){
- _PTR(AttributeComment) aComment(anAttr);
+ if(aChildSObject->FindAttribute(anAttr,"AttributeString")){
+ _PTR(AttributeString) aComment(anAttr);
QString aStream(aComment->Value().c_str());
Storable::TRestoringMap aMap;
Handle(SALOME_InteractiveObject) anIO = aListIter.Value();
_PTR(SObject) aSObject = aCStudy->FindObjectID(anIO->getEntry());
_PTR(GenericAttribute) anAttr;
- if(aSObject->FindAttribute(anAttr,"AttributeComment")){
- _PTR(AttributeComment) aComment(anAttr);
+ if(aSObject->FindAttribute(anAttr,"AttributeString")){
+ _PTR(AttributeString) aComment(anAttr);
std::string aCommentValue(aComment->Value());
if(aCommentValue.compare("myComment=GAUSSVIEW") >= 0){
aComment->SetValue(aValue.c_str());
_PTR(Study) aCStudy = GetCStudy(GetAppStudy(theModule));
_PTR(GenericAttribute) anAttr;
- if(theSObject->FindAttribute(anAttr,"AttributeComment")){
- _PTR(AttributeComment) aComment(anAttr);
+ if(theSObject->FindAttribute(anAttr,"AttributeString")){
+ _PTR(AttributeString) aComment(anAttr);
QString aStream(aComment->Value().c_str());
Storable::TRestoringMap aMap;
Storable::StrToMap(aStream,aMap);
_PTR(SObject) aSObject = aCStudy->FindObjectID(anIO->getEntry());
myConfigSObject = aSObject;
_PTR(GenericAttribute) anAttr;
- if(aSObject->FindAttribute(anAttr,"AttributeComment")){
- _PTR(AttributeComment) aComment(anAttr);
+ if(aSObject->FindAttribute(anAttr,"AttributeString")){
+ _PTR(AttributeString) aComment(anAttr);
QString aStream(aComment->Value().c_str());
Storable::TRestoringMap aMap;
Storable::StrToMap(aStream,aMap);
#include "SALOME_ListIO.hxx"
-#include "SALOMEDSClient_AttributeComment.hxx"
+#include "SALOMEDSClient_AttributeString.hxx"
#include "SALOMEDSClient_AttributeName.hxx"
#include <qlayout.h>
_PTR(SObject) aSObject = aActiveStudy->FindObjectID(aIO->getEntry());
_PTR(GenericAttribute) anTmpAttr;
- if (aSObject->FindAttribute(anTmpAttr, "AttributeComment")) {
- _PTR(AttributeComment) aTmpComment (anTmpAttr);
+ if (aSObject->FindAttribute(anTmpAttr, "AttributeString")) {
+ _PTR(AttributeString) aTmpComment (anTmpAttr);
string aTmpComm = aTmpComment->Value();
QString aTmpstrIn (aTmpComm.c_str());
VISU::Storable::TRestoringMap aTmpaMap;
CORBA::Object_var aChildObject = VISU::ClientSObjectToObject(aChildSObj);
_PTR(GenericAttribute) anAttr;
- if (aChildSObj->FindAttribute(anAttr, "AttributeComment")) {
- _PTR(AttributeComment) aComment (anAttr);
+ if (aChildSObj->FindAttribute(anAttr, "AttributeString")) {
+ _PTR(AttributeString) aComment (anAttr);
string aComm = aComment->Value();
QString strIn (aComm.c_str());
VISU::Storable::TRestoringMap aMap;
VISU::Storable::TRestoringMap aMap;
if (aSObject) {
_PTR(GenericAttribute) anAttr;
- if (aSObject->FindAttribute(anAttr, "AttributeComment")) {
- _PTR(AttributeComment) aComment (anAttr);
+ if (aSObject->FindAttribute(anAttr, "AttributeString")) {
+ _PTR(AttributeString) aComment (anAttr);
std::string aString = aComment->Value();
QString strIn( aString.c_str() );
VISU::Storable::StrToMap(strIn, aMap);
_PTR(SObject) aSObject = aActiveStudy->FindObjectID(aIO->getEntry());
_PTR(GenericAttribute) anTmpAttr;
- if (aSObject->FindAttribute(anTmpAttr, "AttributeComment")) {
- _PTR(AttributeComment) aTmpComment (anTmpAttr);
+ if (aSObject->FindAttribute(anTmpAttr, "AttributeString")) {
+ _PTR(AttributeString) aTmpComment (anTmpAttr);
string aTmpComm = aTmpComment->Value();
QString aTmpstrIn (aTmpComm.c_str());
VISU::Storable::TRestoringMap aTmpaMap;
}
_PTR(GenericAttribute) anAttr;
- if (aChildSObj->FindAttribute(anAttr, "AttributeComment")) {
- _PTR(AttributeComment) aComment (anAttr);
+ if (aChildSObj->FindAttribute(anAttr, "AttributeString")) {
+ _PTR(AttributeString) aComment (anAttr);
string aComm = aComment->Value();
QString strIn (aComm.c_str());
VISU::Storable::TRestoringMap aMap;
for (aIter->InitEx(true); aIter->More(); aIter->Next() ) {
SALOMEDSClient_SObject* aChildSObj = aIter->Value();
SALOMEDSClient_GenericAttribute* anAttr;
- if (aChildSObj->FindAttribute(anAttr, "AttributeComment")) {
- SALOMEDSClient_AttributeComment* aComment = dynamic_cast<SALOMEDSClient_AttributeComment*>( anAttr );
+ if (aChildSObj->FindAttribute(anAttr, "AttributeString")) {
+ SALOMEDSClient_AttributeString* aComment = dynamic_cast<SALOMEDSClient_AttributeString*>( anAttr );
CORBA::String_var aComm = aComment->Value().c_str();
QString strIn(aComm.in());
aMap.clear();
VISU::Storable::TRestoringMap aMap;
if (theSObject) {
_PTR(GenericAttribute) anAttr;
- if (theSObject->FindAttribute(anAttr, "AttributeComment")) {
- _PTR(AttributeComment) aComment (anAttr);
+ if (theSObject->FindAttribute(anAttr, "AttributeString")) {
+ _PTR(AttributeString) aComment (anAttr);
std::string aValue = aComment->Value();
QString aString (aValue.c_str());
VISU::Storable::StrToMap(aString, aMap);
_PTR(SObject) aSObject = aStudy->FindObjectID(theEntry.latin1());
if (aSObject) {
_PTR(GenericAttribute) anAttr;
- if (theMap && aSObject->FindAttribute(anAttr,"AttributeComment")) {
- _PTR(AttributeComment) aComment (anAttr);
+ if (theMap && aSObject->FindAttribute(anAttr,"AttributeString")) {
+ _PTR(AttributeString) aComment (anAttr);
std::string aValue = aComment->Value();
QString aString (aValue.c_str());
VISU::Storable::StrToMap(aString, *theMap);
// (first sub-level) or is a child of such an object
string aNAME, aVisuNAME = GetVisuGen(theModule)->ComponentDataType();
_PTR(GenericAttribute) anAttr;
- _PTR(AttributeComment) aComment;
+ _PTR(AttributeString) aComment;
bool isUnderVISU = false;
_PTR(SObject) aFatherSObject = aSObject->GetFather();
- if (aFatherSObject->FindAttribute(anAttr, "AttributeComment")) {
- _PTR(AttributeComment) aComment (anAttr);
+ if (aFatherSObject->FindAttribute(anAttr, "AttributeString")) {
+ _PTR(AttributeString) aComment (anAttr);
aNAME = aComment->Value();
if (aNAME == aVisuNAME) {
isUnderVISU = true;
isUnderVISU = false;
aFatherSObject = aFatherSObject->GetFather();
- if (aFatherSObject->FindAttribute(anAttr, "AttributeComment")) {
- _PTR(AttributeComment) aComment (anAttr);
+ if (aFatherSObject->FindAttribute(anAttr, "AttributeString")) {
+ _PTR(AttributeString) aComment (anAttr);
aNAME = aComment->Value();
if (aNAME == aVisuNAME) {
isUnderVISU = true;
}
} else {
_PTR(GenericAttribute) anAttr;
- if (theObject->FindAttribute(anAttr, "AttributeComment")) {
- _PTR(AttributeComment) aComment (anAttr);
+ if (theObject->FindAttribute(anAttr, "AttributeString")) {
+ _PTR(AttributeString) aComment (anAttr);
string aComm = aComment->Value();
QString strIn (aComm.c_str());
VISU::Storable::TRestoringMap pMap;
SALOMEDS::SObject_var aFieldSO;
for(;anIter->More();anIter->Next()) {
SALOMEDS::GenericAttribute_var anAttr;
- if (anIter->Value()->FindAttribute(anAttr,"AttributeComment")) {
- SALOMEDS::AttributeComment_var aCmnt = SALOMEDS::AttributeComment::_narrow(anAttr);
+ if (anIter->Value()->FindAttribute(anAttr,"AttributeString")) {
+ SALOMEDS::AttributeString_var aCmnt = SALOMEDS::AttributeString::_narrow(anAttr);
CORBA::String_var aString = aCmnt->Value();
string aValue(aString);
if (aValue == theComment) {
aPRef->SetValue(thePersistentRef);
}
if(strcmp(theComment,"") != 0){
- anAttr = aStudyBuilder->FindOrCreateAttribute(newObj, "AttributeComment");
- SALOMEDS::AttributeComment_var aCmnt = SALOMEDS::AttributeComment::_narrow(anAttr);
+ anAttr = aStudyBuilder->FindOrCreateAttribute(newObj, "AttributeString");
+ SALOMEDS::AttributeString_var aCmnt = SALOMEDS::AttributeString::_narrow(anAttr);
aCmnt->SetValue(theComment);
if(MYDEBUG) INFOS("CreateAttributes - Comment = "<<theComment);
}
aPRef->SetValue(thePersistentRef);
}
if (strcmp(theComment, "") != 0) {
- anAttr = aStudyBuilder->FindOrCreateAttribute(newObj, "AttributeComment");
- _PTR(AttributeComment) aCmnt (anAttr);
+ anAttr = aStudyBuilder->FindOrCreateAttribute(newObj, "AttributeString");
+ _PTR(AttributeString) aCmnt (anAttr);
aCmnt->SetValue(theComment);
if (MYDEBUG) INFOS("CreateAttributes - Comment = " << theComment);
}
{
SALOMEDS::GenericAttribute_var anAttr;
SALOMEDS::SObject_var aFatherSObject = theSObject->GetFather();
- if(aFatherSObject->FindAttribute(anAttr,"AttributeComment")){
- SALOMEDS::AttributeComment_var aComment =
- SALOMEDS::AttributeComment::_narrow(anAttr);
+ if(aFatherSObject->FindAttribute(anAttr,"AttributeString")){
+ SALOMEDS::AttributeString_var aComment =
+ SALOMEDS::AttributeString::_narrow(anAttr);
CORBA::String_var aValue = aComment->Value();
Storable::TRestoringMap aMap;
Storable::StrToMap(aValue.in(),aMap);
case VISU::TTABLE:
if(dynamic_cast<Table_i*>(GetServant(anObj).in())){
SALOMEDS::GenericAttribute_var anAttr;
- if(theSObject->FindAttribute(anAttr,"AttributeComment")){
+ if(theSObject->FindAttribute(anAttr,"AttributeString")){
using namespace SALOMEDS;
- AttributeComment_var aComment = AttributeComment::_narrow(anAttr);
+ AttributeString_var aComment = AttributeString::_narrow(anAttr);
CORBA::String_var aValue = aComment->Value();
Storable::TRestoringMap aMap;
Storable::StrToMap(aValue.in(),aMap);
}
} else { /*if(!CORBA::is_nil(anObj))*/
SALOMEDS::GenericAttribute_var anAttr;
- if (theSObject->FindAttribute(anAttr,"AttributeComment")) {
- SALOMEDS::AttributeComment_var aComment =
- SALOMEDS::AttributeComment::_narrow(anAttr);
+ if (theSObject->FindAttribute(anAttr,"AttributeString")) {
+ SALOMEDS::AttributeString_var aComment =
+ SALOMEDS::AttributeString::_narrow(anAttr);
CORBA::String_var aValue = aComment->Value();
Storable::TRestoringMap aMap;
Storable::StrToMap(aValue.in(),aMap);
theStr<<thePrefix<<"anAttr = aBuilder.FindOrCreateAttribute("<<aName<<",'AttributeName')"<<endl;
theStr<<thePrefix<<"anAttr.SetValue('"<<aName<<"')"<<endl;
- theStr<<thePrefix<<"anAttr = aBuilder.FindOrCreateAttribute("<<aName<<",'AttributeComment')"<<endl;
+ theStr<<thePrefix<<"anAttr = aBuilder.FindOrCreateAttribute("<<aName<<",'AttributeString')"<<endl;
theStr<<thePrefix<<"anAttr.SetValue('"<<aValue.in()<<"')"<<endl;
theStr<<thePrefix<<"pass"<<endl<<endl;
if(MYDEBUG) MESSAGE("VISU_Gen_i::~VISU_Gen_i");
}
- void CorrectSObjectType(SALOMEDS::SObject_ptr theSObject)
+ void CorrectSObjectType(SALOMEDS::SObject_ptr theSObject, SALOMEDS::StudyBuilder_ptr theBuilder)
{
SALOMEDS::GenericAttribute_var anAttr;
- if ( theSObject->FindAttribute(anAttr, "AttributeComment") ) {
- SALOMEDS::AttributeComment_var aAttComment = SALOMEDS::AttributeComment::_narrow(anAttr);
+ bool isAttrStringFound = false;
+
+ if( theSObject->FindAttribute(anAttr, "AttributeComment") ) {
+ //SRN: Replace an AttributeComment with AttributeString
+ SALOMEDS::AttributeComment_var aComment = SALOMEDS::AttributeComment::_narrow(anAttr);
+ string aValue = aComment->Value();
+ theBuilder->RemoveAttribute(theSObject, "AttributeComment");
+ anAttr = theBuilder->FindOrCreateAttribute(theSObject, "AttributeString");
+ SALOMEDS::AttributeString_var aStringAttr = SALOMEDS::AttributeString::_narrow(anAttr);
+ aStringAttr->SetValue(aValue.c_str());
+ isAttrStringFound = true;
+
+ }
+
+ if ( isAttrStringFound || theSObject->FindAttribute(anAttr, "AttributeString") ) {
+ SALOMEDS::AttributeString_var aAttComment = SALOMEDS::AttributeString::_narrow(anAttr);
if ( aAttComment ) {
string aValue = aAttComment->Value();
if ( aValue.compare("") ) {
SALOMEDS::Study_var aStudy = theComponent->GetStudy();
SALOMEDS::ChildIterator_var anIter = aStudy->NewChildIterator(theComponent);
+ SALOMEDS::StudyBuilder_var aStudyBuilder = aStudy->NewBuilder();
+
for (anIter->InitEx(true); anIter->More(); anIter->Next()) {
SALOMEDS::SObject_var aSObject = anIter->Value();
- CorrectSObjectType(aSObject);
+ CorrectSObjectType(aSObject, aStudyBuilder);
}
- SALOMEDS::StudyBuilder_var aStudyBuilder = aStudy->NewBuilder();
+
string aDir = isMultiFile ? theURL : SALOMEDS_Tool::GetTmpDir();
TCollection_AsciiString aTmpDir (const_cast<char*>(aDir.c_str()));
VisuTmpDir = aTmpDir.ToCString();
aResultSO = SALOMEDS::SObject::_duplicate(theObject);
//Just for Result::Restore to find the Comment attribute :(
- SALOMEDS::GenericAttribute_var anAttr = aStudyBuilder->FindOrCreateAttribute(aResultSO, "AttributeComment");
+ SALOMEDS::GenericAttribute_var anAttr = aStudyBuilder->FindOrCreateAttribute(aResultSO, "AttributeString");
Storable* aStorable = Storable::Create(aResultSO,aFileName,aString);
aName->SetValue(theName);
}
if (theComment != "") {
- anAttr = aStudyBuilder->FindOrCreateAttribute(aNewObj, "AttributeComment");
- _PTR(AttributeComment) aCmnt (anAttr);
+ anAttr = aStudyBuilder->FindOrCreateAttribute(aNewObj, "AttributeString");
+ _PTR(AttributeString) aCmnt (anAttr);
aCmnt->SetValue(theComment);
}
return aNewObj->GetID();
aName->SetValue(theName);
}
if (theComment != "") {
- anAttr = aStudyBuilder->FindOrCreateAttribute(aSObject, "AttributeComment");
- _PTR(AttributeComment) aCmnt (anAttr);
+ anAttr = aStudyBuilder->FindOrCreateAttribute(aSObject, "AttributeString");
+ _PTR(AttributeString) aCmnt (anAttr);
aCmnt->SetValue(theComment);
}
}
GetComment(), VISU::TRESULT, myFileInfo.filePath().latin1(),
myInitFileName.c_str()); // Restoring of Python dump
SALOMEDS::GenericAttribute_var anAttr;
- if (!theSObject->FindAttribute(anAttr, "AttributeComment"))
- throw std::runtime_error("Build - There is no AttributeComment for the SObject !!!");
- SALOMEDS::AttributeComment_var aCmnt = SALOMEDS::AttributeComment::_narrow(anAttr);
+ if (!theSObject->FindAttribute(anAttr, "AttributeString"))
+ throw std::runtime_error("Build - There is no AttributeString for the SObject !!!");
+ SALOMEDS::AttributeString_var aCmnt = SALOMEDS::AttributeString::_narrow(anAttr);
aCmnt->SetValue(aComment.latin1());
}
bool anIsBuildAll = VISU::GetResourceMgr()->booleanValue("VISU", "full_med_loading", false);
else{
aComment.sprintf("myComment=%s;myType=%d;mySourceId=TableAttr",GetComment(),VISU::TTABLE);
SALOMEDS::SObject_var aFatherSObject = SO->GetFather();
- if(aFatherSObject->FindAttribute(anAttr,"AttributeComment")){
- SALOMEDS::AttributeComment_var aCommentAttr =
- SALOMEDS::AttributeComment::_narrow(anAttr);
+ if(aFatherSObject->FindAttribute(anAttr,"AttributeString")){
+ SALOMEDS::AttributeString_var aCommentAttr =
+ SALOMEDS::AttributeString::_narrow(anAttr);
CORBA::String_var aValue = aCommentAttr->Value();
Storable::TRestoringMap aMap;
Storable::StrToMap(aValue.in(),aMap);
SALOMEDS::AttributeName_var aName = SALOMEDS::AttributeName::_narrow(anAttr);
QFileInfo aFileInfo(theFileName);
aName->SetValue(aFileInfo.fileName().latin1());
- anAttr = aStudyBuilder->FindOrCreateAttribute(aFileObject, "AttributeComment");
- SALOMEDS::AttributeComment_var aComment = SALOMEDS::AttributeComment::_narrow(anAttr);
+ anAttr = aStudyBuilder->FindOrCreateAttribute(aFileObject, "AttributeString");
+ SALOMEDS::AttributeString_var aComment = SALOMEDS::AttributeString::_narrow(anAttr);
QString aString;
aString.sprintf("myComment=ImportTables;myFileName=%s",
aFileInfo.absFilePath().latin1());
#include "SUIT_Session.h"
#include "SUIT_Study.h"
-#include "SALOMEDSClient_AttributeComment.hxx"
+#include "SALOMEDSClient_AttributeString.hxx"
#include "SALOMEDSClient_AttributeName.hxx"
#include <qpixmap.h>
VISU::Storable::TRestoringMap aMap;
if (theSObject) {
_PTR(GenericAttribute) anAttr;
- if (theSObject->FindAttribute(anAttr, "AttributeComment")) {
- _PTR(AttributeComment) aComment (anAttr);
+ if (theSObject->FindAttribute(anAttr, "AttributeString")) {
+ _PTR(AttributeString) aComment (anAttr);
std::string aString = aComment->Value();
QString strIn (aString.c_str());
VISU::Storable::StrToMap(strIn, aMap);
VISU::TANIMATION,myTimeMinVal,myTimeMaxVal);
_PTR(GenericAttribute) anAttr;
- anAttr = aStudyBuilder->FindOrCreateAttribute(aAnimSObject, "AttributeComment");
- _PTR(AttributeComment) aCmnt (anAttr);
+ anAttr = aStudyBuilder->FindOrCreateAttribute(aAnimSObject, "AttributeString");
+ _PTR(AttributeString) aCmnt (anAttr);
aCmnt->SetValue(aComment.latin1());
_PTR(ChildIterator) anIter = myStudy->NewChildIterator(aAnimSObject);
if (anPrsIter->More()) {
_PTR(SObject) aPrsObj = anPrsIter->Value();
- anAttr = aStudyBuilder->FindOrCreateAttribute(aPrsObj, "AttributeComment");
- aCmnt = _PTR(AttributeComment)(anAttr);
+ anAttr = aStudyBuilder->FindOrCreateAttribute(aPrsObj, "AttributeString");
+ aCmnt = _PTR(AttributeString)(anAttr);
aCmnt->SetValue(aPrsComment.c_str());
anAttr = aStudyBuilder->FindOrCreateAttribute(aPrsObj, "AttributeName");
VISU::Storable::TRestoringMap aMap;
_PTR(GenericAttribute) anAttr;
- if (!aAnimSObject->FindAttribute(anAttr, "AttributeComment")) return;
+ if (!aAnimSObject->FindAttribute(anAttr, "AttributeString")) return;
- _PTR(AttributeComment) aComment (anAttr);
+ _PTR(AttributeString) aComment (anAttr);
string aComm = aComment->Value();
QString strIn (aComm.c_str());
VISU::Storable::StrToMap(strIn,aMap);
continue;
generatePresentations(getNbFields()-1);
- if (!aPrsObj->FindAttribute(anAttr, "AttributeComment")) continue;
- _PTR(AttributeComment) aPrsComment (anAttr);
+ if (!aPrsObj->FindAttribute(anAttr, "AttributeString")) continue;
+ _PTR(AttributeString) aPrsComment (anAttr);
string aPrsComm = aPrsComment->Value();
if (aPrsComm.length() > 0) {
QString strPrsIn (aPrsComm.c_str());
_PTR(SObject) anObj = aList[i];
string anEntry = anObj->GetID();
if(MYDEBUG) MESSAGE("View3D_i::SaveViewParams - anEntry = " << anEntry);
- if (anObj->FindAttribute(anAttr, "AttributeComment")) {
- _PTR(AttributeComment) aCmnt (anAttr);
+ if (anObj->FindAttribute(anAttr, "AttributeString")) {
+ _PTR(AttributeString) aCmnt (anAttr);
string aComm (aCmnt->Value());
if (MYDEBUG) MESSAGE("View3D_i::SaveViewPoint - aComm = " << aComm);
if (aComm.compare(View3D_i::myComment) >= 0) {
_PTR(SObject) anObj = aList[i];
string anEntry = anObj->GetID();
if (MYDEBUG) MESSAGE("View3D_i::RestoreViewPoint - anEntry = " << anEntry);
- if (anObj->FindAttribute(anAttr, "AttributeComment")) {
- _PTR(AttributeComment) aCmnt (anAttr);
+ if (anObj->FindAttribute(anAttr, "AttributeString")) {
+ _PTR(AttributeString) aCmnt (anAttr);
QString strIn(aCmnt->Value().c_str());
Storable::TRestoringMap aMap;
Storable::StrToMap(strIn, aMap);