]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
PAL10399: Possible problems with saving data of Python modules
authorjfa <jfa@opencascade.com>
Wed, 26 Oct 2005 10:03:26 +0000 (10:03 +0000)
committerjfa <jfa@opencascade.com>
Wed, 26 Oct 2005 10:03:26 +0000 (10:03 +0000)
src/SALOMEDS/SALOMEDS_StudyManager_i.cxx

index 29d0ca4b60808f7d81448b0fe1010f6d0b03c5d1..daab189000cbcf824a8850bcc329e59b6e96c4bd 100644 (file)
@@ -730,12 +730,12 @@ void SALOMEDS_StudyManager_i::_SaveAs(const char* aUrl,
              
              Engines::Component_var aComp =
                SALOME_LifeCycleCORBA(&_name_service).FindOrLoad_Component(aFactoryType, aCompType);
-               
+
              if(aComp->_is_nil()){
-               Engines::Component_var aComp =
-                 SALOME_LifeCycleCORBA(&_name_service).FindOrLoad_Component("FactoryServerPy", aCompType);
+               aComp =
+                  SALOME_LifeCycleCORBA(&_name_service).FindOrLoad_Component("FactoryServerPy", aCompType);
              }
-               
+
              if(!aComp->_is_nil()){
                SALOMEDS::Driver_var aDriver = SALOMEDS::Driver::_narrow(aComp);
                if (!CORBA::is_nil(aDriver)) {