From 5feb622ebc6a05b8538de2f0b383543377ace53e Mon Sep 17 00:00:00 2001 From: srn Date: Fri, 10 Feb 2006 11:08:18 +0000 Subject: [PATCH] Modified method DumpPython --- src/VISU_I/VISU_DumpPython.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/VISU_I/VISU_DumpPython.cc b/src/VISU_I/VISU_DumpPython.cc index 88d79f7d..67296b9d 100644 --- a/src/VISU_I/VISU_DumpPython.cc +++ b/src/VISU_I/VISU_DumpPython.cc @@ -1175,9 +1175,11 @@ namespace VISU{ VISU::DumpContainersToPython(aStudy,theIsPublished,theIsValidScript,aComponent.in(),aStr,aName2EntryMap,aEntry2NameMap,"",aPrefix); //Output the script that sets up the visul parameters. - _PTR(Study) study(new SALOMEDS_Study(aStudy)); - string defScript = SALOMEDS_IParameters::getDefaultScript(study, "Interface Applicative", "Post-Pro", aPrefix); - if(defScript != "") aStr << defScript; + if(theIsPublished) { + _PTR(Study) study(new SALOMEDS_Study(aStudy)); + string defScript = SALOMEDS_IParameters::getDefaultScript(study, "Interface Applicative", "Post-Pro", aPrefix); + if(defScript != "") aStr << defScript; + } aStr<