From d13f820b199afdc10734e8de3be467d798d1c9b8 Mon Sep 17 00:00:00 2001 From: jfa Date: Wed, 19 Dec 2007 12:26:41 +0000 Subject: [PATCH] Fix bug 17212 again. --- src/VISU_I/VISU_Result_i.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); -- 2.39.2