]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Additional fix for issue 0013373: EDF PAL 273 : Option Single/Multi file dump
authorouv <ouv@opencascade.com>
Wed, 30 Mar 2011 07:27:32 +0000 (07:27 +0000)
committerouv <ouv@opencascade.com>
Wed, 30 Mar 2011 07:27:32 +0000 (07:27 +0000)
src/GEOM/GEOM_Engine.cxx

index 368323d2230410b2bccd47673ea925ca0f4a7b11..bad944c95da0321d4876a39f36e02fbcea1585b5 100644 (file)
@@ -745,7 +745,7 @@ TCollection_AsciiString GEOM_Engine::DumpPython(int theDocID,
       globalVars += ", ";
     globalVars += data->_pyName;
   }
-  if ( !globalVars.IsEmpty() ) {
+  if ( isMultiFile && !globalVars.IsEmpty() ) {
     globalVars.Insert( 1, "\n\tglobal " );
     aScript.Insert( posToInsertGlobalVars, globalVars );
   }