From a992b19d3a5f58fe0d2fd31b1a833723cd7be890 Mon Sep 17 00:00:00 2001 From: akl Date: Tue, 9 Jul 2013 08:18:12 +0000 Subject: [PATCH] Iterate all children of study and append it to the it's father. --- src/GEOM_I/GEOM_Gen_i.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() ); } } -- 2.39.2