From: caremoli Date: Tue, 5 May 2009 14:27:51 +0000 (+0000) Subject: CCAR: remove bug in FindOrLoad_Component X-Git-Tag: V5_1_2rc1~36 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=221b21863dbcea771dc36d44d945a87a81eb4b23;p=modules%2Fkernel.git CCAR: remove bug in FindOrLoad_Component --- 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(); }