From 5bd1626b7cecee8544a3d89903d1dc796fd2d580 Mon Sep 17 00:00:00 2001 From: mzn Date: Fri, 24 Oct 2008 09:15:49 +0000 Subject: [PATCH] Fix for bug IPAL20126 (Qt4 porting: SIGSEGV on activate Post-Pro with the ASCII saved study - regress). --- src/VISU_I/VISU_Result_i.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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); -- 2.39.2