From: eap Date: Tue, 28 May 2013 16:49:06 +0000 (+0000) Subject: 0022108: EDF 2547 SMESH: Duplicate elements only X-Git-Tag: V7_3_0a1~386 X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=commitdiff_plain;h=251eb76e54c7de6f6918e24796468f6dd51df7a1 0022108: EDF 2547 SMESH: Duplicate elements only Modify UniqueName() to look through all objects (groups, sub-meshes etc) and not only meshes. --- diff --git a/src/SMESHGUI/SMESHGUI_MeshUtils.cxx b/src/SMESHGUI/SMESHGUI_MeshUtils.cxx index 110b80f0e..b6036d4de 100644 --- a/src/SMESHGUI/SMESHGUI_MeshUtils.cxx +++ b/src/SMESHGUI/SMESHGUI_MeshUtils.cxx @@ -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;