From: eap Date: Mon, 26 Nov 2007 15:17:33 +0000 (+0000) Subject: PAL16842 (Genertion of groups when a mesh is transformed) X-Git-Tag: V3_2_9rc2~11 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=36f236d5f427216a3bee28c2a23fa70d98f64490;p=modules%2Fsmesh.git PAL16842 (Genertion of groups when a mesh is transformed) fix names generation in generateGroups() --- 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