]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
CCAR: remove bug in FindOrLoad_Component
authorcaremoli <caremoli>
Tue, 5 May 2009 14:27:51 +0000 (14:27 +0000)
committercaremoli <caremoli>
Tue, 5 May 2009 14:27:51 +0000 (14:27 +0000)
src/LifeCycleCORBA/SALOME_LifeCycleCORBA.cxx

index cdc04fde9db39a9d2d95aa5899e5c9821b0816bb..dd691dd193baeba2e4ffd553079db8fdd3cbcf96 100644 (file)
@@ -171,6 +171,9 @@ SALOME_LifeCycleCORBA::LoadComponent(const Engines::MachineParameters& params,
   parms.componentList.length(1);
   parms.componentList[0] = componentName;
 
+  Engines::MachineList_var listOfMachines = _ResManager->GetFittingResources(parms);
+  parms.computerList=listOfMachines;
+
   Engines::Component_var compo = _LoadComponent(parms,
                                                componentName,
                                                studyId);
@@ -211,9 +214,12 @@ FindOrLoad_Component(const Engines::MachineParameters& params,
                                                listOfMachines);
 
   if(CORBA::is_nil(compo))
-    compo = _LoadComponent(parms,
+    {
+      parms.computerList=listOfMachines;
+      compo = _LoadComponent(parms,
                           componentName,
                           studyId);
+    }
 
   return compo._retn();
 }