]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix for bug IPAL20126 (Qt4 porting: SIGSEGV on activate Post-Pro with the ASCII saved...
authormzn <mzn@opencascade.com>
Fri, 24 Oct 2008 09:15:49 +0000 (09:15 +0000)
committermzn <mzn@opencascade.com>
Fri, 24 Oct 2008 09:15:49 +0000 (09:15 +0000)
src/VISU_I/VISU_Result_i.cc

index 1ffaa4b20eaedb610e1036cf4b57260cb510379c..5d47138b85b88eb7c070adb565ba9ffd5d0bc419 100644 (file)
@@ -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);