From 36f236d5f427216a3bee28c2a23fa70d98f64490 Mon Sep 17 00:00:00 2001 From: eap Date: Mon, 26 Nov 2007 15:17:33 +0000 Subject: [PATCH] PAL16842 (Genertion of groups when a mesh is transformed) fix names generation in generateGroups() --- src/SMESH/SMESH_MeshEditor.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/SMESH/SMESH_MeshEditor.cxx b/src/SMESH/SMESH_MeshEditor.cxx index 4771bf9a0..81642823f 100644 --- a/src/SMESH/SMESH_MeshEditor.cxx +++ b/src/SMESH/SMESH_MeshEditor.cxx @@ -4540,10 +4540,11 @@ SMESH_MeshEditor::generateGroups(const SMESH_SequenceOfElemPtr& nodeGens, name += "_1"; } else { - TCollection_AsciiString nbStr(++nb); - name.resize( name.rfind('_') ); + TCollection_AsciiString nbStr(nb+1); + name.resize( name.rfind('_')+1 ); name += nbStr.ToCString(); } + ++nb; } } // make a group -- 2.39.2