From 251eb76e54c7de6f6918e24796468f6dd51df7a1 Mon Sep 17 00:00:00 2001 From: eap Date: Tue, 28 May 2013 16:49:06 +0000 Subject: [PATCH] 0022108: EDF 2547 SMESH: Duplicate elements only Modify UniqueName() to look through all objects (groups, sub-meshes etc) and not only meshes. --- src/SMESHGUI/SMESHGUI_MeshUtils.cxx | 1 + 1 file changed, 1 insertion(+) 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; -- 2.39.2