]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Correction for problem: Command "dump study" doesn't work at first time at load Post...
authormaintenance team <salome-mnt@opencascade.com>
Mon, 25 Sep 2006 13:35:27 +0000 (13:35 +0000)
committermaintenance team <salome-mnt@opencascade.com>
Mon, 25 Sep 2006 13:35:27 +0000 (13:35 +0000)
src/VISU_I/VISU_DumpPython.cc

index a2e810a8711ee7edd5f21ea816b754ad72c08421..a5378c0a65bc63a610ca22d7b8eb7494ac9adac3 100644 (file)
@@ -1293,6 +1293,8 @@ namespace VISU
             CORBA::Boolean theIsPublished,
             CORBA::Boolean& theIsValidScript)
   {
+    theIsValidScript = false;
+
     SALOMEDS::Study_var aStudy = SALOMEDS::Study::_narrow(theStudy);
     if(CORBA::is_nil(aStudy))
       return new Engines::TMPFile(0);
@@ -1337,6 +1339,10 @@ namespace VISU
     }
 
     aStr<<aPrefix<<"pass"<<endl;
+    // theIsValidScript currently is not used by internal dump methods (DumpChildrenToPython(), etc.)
+    // If the situation changes, then the following line should be removed, and theIsValidScript
+    // should be set properly by those internal methods
+    theIsValidScript = true;
 
 #ifndef COUT
     std::string aResult = aStr.str();