]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
0020883: [CEA 404] Pb with old hdf V5_1_main_20100601
authorvsr <vsr@opencascade.com>
Mon, 31 May 2010 09:25:22 +0000 (09:25 +0000)
committervsr <vsr@opencascade.com>
Mon, 31 May 2010 09:25:22 +0000 (09:25 +0000)
Additional problem of ImportTables() method has been fixed (compatibility with old studies)

src/VISU_I/VISU_DumpPython.cc

index 80bcd374ef4fdc56f14d282a23b28ed93c6a2bfa..5ba81d944e9bd36e267a7cf4b0cfb651e713a8bf 100644 (file)
@@ -1713,7 +1713,11 @@ namespace VISU
              std::string aName =
                 GenerateName(theSObject,theName2EntryMap,theEntry2NameMap);
               QString aFirstStrAsTitle =
-                VISU::Storable::FindValue(aMap,"myFirstStrAsTitle",&anIsExist);
+                VISU::Storable::FindValue(aMap,"myFirstStrAsTitle",&anIsExist).trimmed().toLower();
+             if ( aFirstStrAsTitle == "1" || aFirstStrAsTitle == "true" )
+               aFirstStrAsTitle = "True";
+             else
+               aFirstStrAsTitle = "False";
              theStr<<thePrefix<<aName<<" = aVisu.ImportTables('"
                     <<aFileName.toLatin1().data()<<"',"
                     <<aFirstStrAsTitle.toLatin1().data()<<")"<<endl;