From: srn Date: Wed, 15 Feb 2006 09:09:11 +0000 (+0000) Subject: Update the genaration of VISUAL parameters X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9827b7bcffe47b649c7e521ae0809f5aa2fddaa8;p=modules%2Fvisu.git Update the genaration of VISUAL parameters --- 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<