Salome HOME
0022108: EDF 2547 SMESH: Duplicate elements only
authoreap <eap@opencascade.com>
Tue, 28 May 2013 16:49:06 +0000 (16:49 +0000)
committereap <eap@opencascade.com>
Tue, 28 May 2013 16:49:06 +0000 (16:49 +0000)
Modify UniqueName() to look through all objects (groups, sub-meshes
etc) and not only meshes.

src/SMESHGUI/SMESHGUI_MeshUtils.cxx

index 110b80f0edd195b251c0522bda67cb1ad8dc0816..b6036d4de0a2527fa93899410bdef242b9a61bbe 100644 (file)
@@ -95,6 +95,7 @@ namespace SMESH
       if ( !p ) p = aStudy->FindComponent( "SMESH" );
       if ( p ) {
         _PTR(ChildIterator) iter = aStudy->NewChildIterator( p );
+        iter->InitEx(/*allLevels=*/true);
         int idx = 0;
         while( true ) {
           bool found = false;