From: mzn Date: Fri, 24 Oct 2008 09:15:49 +0000 (+0000) Subject: Fix for bug IPAL20126 (Qt4 porting: SIGSEGV on activate Post-Pro with the ASCII saved... X-Git-Tag: V5_1_0a3~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5bd1626b7cecee8544a3d89903d1dc796fd2d580;p=modules%2Fvisu.git Fix for bug IPAL20126 (Qt4 porting: SIGSEGV on activate Post-Pro with the ASCII saved study - regress). --- diff --git a/src/VISU_I/VISU_Result_i.cc b/src/VISU_I/VISU_Result_i.cc index 1ffaa4b2..5d47138b 100644 --- a/src/VISU_I/VISU_Result_i.cc +++ b/src/VISU_I/VISU_Result_i.cc @@ -800,10 +800,9 @@ VISU::Result_i if(MYDEBUG) MESSAGE("Result_i::Restore - aFileName = " << myFileInfo.filePath().toLatin1().data() << "; " << myFileInfo.isFile()); - const char* aPathLatin = myFileInfo.filePath().toLatin1().data(); - if (HDFascii::isASCII(aPathLatin)) { - MESSAGE("ConvertFromASCIIToHDF(" << aPathLatin << ")"); - char* aResultPath = HDFascii::ConvertFromASCIIToHDF(aPathLatin); + if (HDFascii::isASCII(myFileInfo.filePath().toLatin1().data())) { + MESSAGE("ConvertFromASCIIToHDF(" << myFileInfo.filePath().toLatin1().data() << ")"); + char* aResultPath = HDFascii::ConvertFromASCIIToHDF(myFileInfo.filePath().toLatin1().data()); MESSAGE("ConvertFromASCIIToHDF() DONE : " << aResultPath); char* aHDFFileName = new char[strlen(aResultPath) + 19]; sprintf(aHDFFileName, "%shdf_from_ascii.hdf", aResultPath);