]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Bug IPAL20021 4x REGR: wrong file name (*.med:0x*) after saving in multifile mode V4_1_0_maintainance_20080716
authordmv <dmv@opencascade.com>
Tue, 15 Jul 2008 11:32:37 +0000 (11:32 +0000)
committerdmv <dmv@opencascade.com>
Tue, 15 Jul 2008 11:32:37 +0000 (11:32 +0000)
src/VISU_I/VISU_Result_i.cc

index 07bac9ec37d8037e3918f25730b77e1c92e0f4c8..54b760bba7751af0180bdbc58748fbd70479ea1c 100644 (file)
@@ -645,7 +645,7 @@ VISU::Result_i
       aPrefix = SALOMEDS_Tool::GetNameFromPath(anURL.in());
     }
 
-    std::string aFileName = aPrefix + "_" + GetFileName();
+    std::string aFileName = aPrefix + "_" + GetFileName().c_str();
     BEGMSG(MYDEBUG, "aFileName = '"<<aFileName<<"'\n");
 
     std::string aFile = GetFileInfo().filePath().latin1();
@@ -1352,7 +1352,7 @@ std::string
 VISU::Result_i
 ::GetFileName() const
 {
-  if(GetSourceId() == eFile)
+  if(GetSourceId() == eRestoredFile)
     return VISU::MakeFileName(myFileName, this);
 
   return myFileName;