From: ouv Date: Wed, 30 Mar 2011 07:27:32 +0000 (+0000) Subject: Additional fix for issue 0013373: EDF PAL 273 : Option Single/Multi file dump X-Git-Tag: Start_BR_19998_21191~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e4ebb2badaf9f60fd455d7ba6d821d247c88c17b;p=modules%2Fgeom.git Additional fix for issue 0013373: EDF PAL 273 : Option Single/Multi file dump --- diff --git a/src/GEOM/GEOM_Engine.cxx b/src/GEOM/GEOM_Engine.cxx index 368323d22..bad944c95 100644 --- a/src/GEOM/GEOM_Engine.cxx +++ b/src/GEOM/GEOM_Engine.cxx @@ -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 ); }