From 9827b7bcffe47b649c7e521ae0809f5aa2fddaa8 Mon Sep 17 00:00:00 2001 From: srn Date: Wed, 15 Feb 2006 09:09:11 +0000 Subject: [PATCH] Update the genaration of VISUAL parameters --- src/VISU_I/VISU_DumpPython.cc | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/VISU_I/VISU_DumpPython.cc b/src/VISU_I/VISU_DumpPython.cc index 67296b9d..078f1766 100644 --- a/src/VISU_I/VISU_DumpPython.cc +++ b/src/VISU_I/VISU_DumpPython.cc @@ -49,10 +49,6 @@ #include #include -#include -#include -#include - //#define COUT using namespace std; @@ -1176,9 +1172,11 @@ namespace VISU{ //Output the script that sets up the visul parameters. if(theIsPublished) { - _PTR(Study) study(new SALOMEDS_Study(aStudy)); - string defScript = SALOMEDS_IParameters::getDefaultScript(study, "Interface Applicative", "Post-Pro", aPrefix); - if(defScript != "") aStr << defScript; + char* script = aStudy->GetDefaultScript("Post-Pro", aPrefix.c_str()); + if(script && strlen(script) > 0) { + aStr << script; + CORBA::string_free(script); + } } aStr<