]> SALOME platform Git repositories - modules/med.git/commitdiff
Salome HOME
Removed parameter "theStudy" in "DumpPython"
authorimn <imn@opencascade.com>
Tue, 29 Nov 2016 13:37:19 +0000 (16:37 +0300)
committerimn <imn@opencascade.com>
Tue, 29 Nov 2016 13:37:19 +0000 (16:37 +0300)
src/MEDCalc/cmp/MED.cxx
src/MEDCalc/cmp/MED.hxx

index 1c65f366e6a0718115d439441663e6f1e4ee6963..3ec7bbe090ac9beca584e3f69cea152549c5702d 100644 (file)
@@ -356,11 +356,12 @@ MED::getStudyPresentationEntry(SALOMEDS::Study_ptr study, CORBA::Long presentati
 
 
 Engines::TMPFile*
-MED::DumpPython(CORBA::Object_ptr theStudy,
-                CORBA::Boolean isPublished,
+MED::DumpPython(CORBA::Boolean isPublished,
                 CORBA::Boolean isMultiFile,
                 CORBA::Boolean& isValidScript)
 {
+  SALOME_LifeCycleCORBA lcc;
+  CORBA::Object_var theStudy = lcc.namingService()->Resolve("/Study");
   SALOMEDS::Study_var aStudy = SALOMEDS::Study::_narrow(theStudy);
   if(CORBA::is_nil(aStudy)) {
     std::cerr << "Error: Cannot find the study\n";
index b970de034eabacb445e25fbcfc748516aebf0e15..69a62539055bbd537c9ab3220ef7329f0987c620 100644 (file)
@@ -84,8 +84,7 @@ public:
   void cleanUp();
 
   /*! Dump the study as a Python file */
-  virtual Engines::TMPFile* DumpPython(CORBA::Object_ptr theStudy,
-                                       CORBA::Boolean isPublished,
+  virtual Engines::TMPFile* DumpPython(CORBA::Boolean isPublished,
                                        CORBA::Boolean isMultiFile,
                                        CORBA::Boolean& isValidScript);