From 221b21863dbcea771dc36d44d945a87a81eb4b23 Mon Sep 17 00:00:00 2001 From: caremoli Date: Tue, 5 May 2009 14:27:51 +0000 Subject: [PATCH] CCAR: remove bug in FindOrLoad_Component --- src/LifeCycleCORBA/SALOME_LifeCycleCORBA.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/LifeCycleCORBA/SALOME_LifeCycleCORBA.cxx b/src/LifeCycleCORBA/SALOME_LifeCycleCORBA.cxx index cdc04fde9..dd691dd19 100644 --- a/src/LifeCycleCORBA/SALOME_LifeCycleCORBA.cxx +++ b/src/LifeCycleCORBA/SALOME_LifeCycleCORBA.cxx @@ -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(); } -- 2.39.2