]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Iterate all children of study and append it to the it's father.
authorakl <akl@opencascade.com>
Tue, 9 Jul 2013 08:18:12 +0000 (08:18 +0000)
committerakl <akl@opencascade.com>
Tue, 9 Jul 2013 08:18:12 +0000 (08:18 +0000)
src/GEOM_I/GEOM_Gen_i.cc

index 326810804e25f82a13a7d26f9476c88bd31d20c9..7f6a12dd217667606d554eb4a0485014334fc40a 100644 (file)
@@ -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() );
     }
   }