From: jfa Date: Wed, 19 Dec 2007 12:26:41 +0000 (+0000) Subject: Fix bug 17212 again. X-Git-Tag: mergeto_BR_QT4_Dev_17Jan08~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d13f820b199afdc10734e8de3be467d798d1c9b8;p=modules%2Fvisu.git Fix bug 17212 again. --- diff --git a/src/VISU_I/VISU_Result_i.cc b/src/VISU_I/VISU_Result_i.cc index c6edea98..7cc7f639 100644 --- a/src/VISU_I/VISU_Result_i.cc +++ b/src/VISU_I/VISU_Result_i.cc @@ -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);