Salome HOME
Fix for Bug IPAL8945
[modules/visu.git] / src / VISUGUI / VisuGUI_EditContainerDlg.cxx
index 353944e5ca47f151282ded72bec48aa94967089f..eed32a53721cc81c373f3585e982af23bb5df15d 100644 (file)
@@ -320,7 +320,7 @@ void VisuGUI_EditContainerDlg::initFromPrsObject (VISU::Container_i* theContaine
        CurveStruct aEntry;
        aEntry.TableName = getSObjectName(aTableSO);
        aEntry.CurveName = getSObjectName(aSObject);
-       aEntry.CurveEntry = aSObject->GetID();
+       aEntry.CurveEntry = aSObject->GetID().c_str();
        aStudyCurves.append(aEntry);
       }
     }
@@ -346,7 +346,7 @@ void VisuGUI_EditContainerDlg::storeToPrsObject (VISU::Container_i* theContainer
   _PTR(Study) aStudy = VISU::GetCStudy(VISU::GetAppStudy(myVisuGUI));
   QListViewItem* anItem = myContainerLst->firstChild();
   while (anItem) {
-    _PTR(SObject) aCurveSO = aStudy->FindObjectID(anItem->text(2));
+    _PTR(SObject) aCurveSO = aStudy->FindObjectID(anItem->text(2).latin1());
     if (aCurveSO) {
       CORBA::Object_var aObject = VISU::ClientSObjectToObject(aCurveSO);
       if (!CORBA::is_nil(aObject)) {
@@ -365,7 +365,7 @@ QString VisuGUI_EditContainerDlg::getSObjectName (_PTR(SObject) theSObject)
   _PTR(GenericAttribute) anAttr;
   if (theSObject->FindAttribute(anAttr, "AttributeName")) {
     _PTR(AttributeName) aName (anAttr);
-    return QString(aName->Value());
+    return QString(aName->Value().c_str());
   }
   return QString("");
 }