]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix bug 17212 again.
authorjfa <jfa@opencascade.com>
Wed, 19 Dec 2007 12:26:41 +0000 (12:26 +0000)
committerjfa <jfa@opencascade.com>
Wed, 19 Dec 2007 12:26:41 +0000 (12:26 +0000)
src/VISU_I/VISU_Result_i.cc

index c6edea987411e72abaaaa5148bc43c0d4300dd91..7cc7f6394c2678607b09a738732b9a2e1443980a 100644 (file)
@@ -539,7 +539,7 @@ VISU::Result_i
 
       myFileInfo.setFile(aPathToCopy);
       myFileName = myFileInfo.fileName().latin1();
-   }
+    }
 
     myInput.reset(CreateConvertor(myFileInfo.absFilePath().latin1()));
 
@@ -602,9 +602,10 @@ VISU::Result_i
 
     string aCompDataType = "MED";
     myFileInfo.setFile(aCompDataType.c_str());
-    SetInitFileName(aCompDataType);
 
     myFileName = VISU::GenerateName("aResult").latin1();
+    SetInitFileName(aCompDataType);
+    SetName(VISU::GenerateName(myFileInfo.fileName()).latin1(), false);
 
     CORBA::String_var anIOR = myStudyDocument->ConvertObjectToIOR(theField);
     SALOMEDS::SObject_var aFieldSObject = myStudyDocument->FindObjectIOR(anIOR);