]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Compatibility with old SALOME studies
authorvsr <vsr@opencascade.com>
Tue, 13 Aug 2013 10:56:50 +0000 (10:56 +0000)
committervsr <vsr@opencascade.com>
Tue, 13 Aug 2013 10:56:50 +0000 (10:56 +0000)
src/GEOM_I/GEOM_Gen_i.cc

index 75e177984f2d3aa419728e17d58444f38cb7cc09..3026120cc74bd445b7bc08b0be601ea56dfb957d 100644 (file)
@@ -595,8 +595,11 @@ CORBA::Boolean GEOM_Gen_i::Load(SALOMEDS::SComponent_ptr theComponent,
   if ( !useCaseBuilder->IsUseCaseNode( theComponent ) ) {
     useCaseBuilder->SetRootCurrent();
     useCaseBuilder->Append( theComponent ); // component object is added as the top level item
-    SALOMEDS::ChildIterator_wrap it = study->NewChildIterator( theComponent ); 
-    for (it->InitEx(true); it->More(); it->Next()) {
+  }
+  
+  SALOMEDS::ChildIterator_wrap it = study->NewChildIterator( theComponent ); 
+  for ( it->InitEx(true); it->More(); it->Next() ) {
+    if ( !useCaseBuilder->IsUseCaseNode( it->Value() ) ) {
       useCaseBuilder->AppendTo( it->Value()->GetFather(), it->Value() );
     }
   }