]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix compilation errors
authorjfa <jfa@opencascade.com>
Fri, 22 Jul 2005 10:05:13 +0000 (10:05 +0000)
committerjfa <jfa@opencascade.com>
Fri, 22 Jul 2005 10:05:13 +0000 (10:05 +0000)
src/VISU_I/VISU_Gen_i.cc
src/VISU_I/VISU_TimeAnimation.cxx

index 894b5581d59d0beeba80e3d9cf5dad8660e5b73a..d1b47cf3e84d14dc8a6711170f10b3b6d0acf92d 100644 (file)
@@ -439,7 +439,7 @@ namespace VISU{
            MESSAGE("!!! anApp->onLoadDoc(myStudyName) !!!");
            // Has to be loaded in an empty or in a new application
            SalomeApp_Application* anApp = dynamic_cast<SalomeApp_Application*>(aFirstApp);
-           anApp->onLoadDoc(myStudyName);
+           anApp->onLoadDoc(myStudyName.c_str());
          }
        }
     };
index 95f43444122660bcbb133a57c6fecf0ee1213061..0e34ef3f5a2f18edd75f8a145a78305608915a1c 100644 (file)
@@ -702,7 +702,7 @@ void VISU_TimeAnimation::saveAnimation()
   if (myStudy->GetProperties()->IsLocked())  return;
   if (myAnimEntry.isEmpty()) return;
 
-  _PTR(SObject) aAnimSObject = myStudy->FindObjectID(myAnimEntry);
+  _PTR(SObject) aAnimSObject = myStudy->FindObjectID(myAnimEntry.latin1());
   if (!aAnimSObject) return;
 
   _PTR(StudyBuilder) aStudyBuilder = myStudy->NewBuilder();
@@ -717,7 +717,7 @@ void VISU_TimeAnimation::saveAnimation()
   _PTR(GenericAttribute) anAttr;
   anAttr = aStudyBuilder->FindOrCreateAttribute(aAnimSObject, "AttributeComment");
   _PTR(AttributeComment) aCmnt (anAttr);
-  aCmnt->SetValue(aComment);
+  aCmnt->SetValue(aComment.latin1());
 
   _PTR(ChildIterator) anIter = myStudy->NewChildIterator(aAnimSObject);
   int i;