From: akl Date: Tue, 9 Jul 2013 08:18:12 +0000 (+0000) Subject: Iterate all children of study and append it to the it's father. X-Git-Tag: BR_hydro_v_0_3_1~162 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a992b19d3a5f58fe0d2fd31b1a833723cd7be890;p=modules%2Fgeom.git Iterate all children of study and append it to the it's father. --- diff --git a/src/GEOM_I/GEOM_Gen_i.cc b/src/GEOM_I/GEOM_Gen_i.cc index 326810804..7f6a12dd2 100644 --- a/src/GEOM_I/GEOM_Gen_i.cc +++ b/src/GEOM_I/GEOM_Gen_i.cc @@ -593,8 +593,8 @@ CORBA::Boolean GEOM_Gen_i::Load(SALOMEDS::SComponent_ptr theComponent, useCaseBuilder->SetRootCurrent(); useCaseBuilder->Append( theComponent ); // component object is added as the top level item SALOMEDS::ChildIterator_var it = theComponent->GetStudy()->NewChildIterator( theComponent ); - for (it->Init(); it->More(); it->Next()) { - useCaseBuilder->AppendTo( theComponent, it->Value() ); + for (it->InitEx(true); it->More(); it->Next()) { + useCaseBuilder->AppendTo( it->Value()->GetFather(), it->Value() ); } }