]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
PAL16842 (Genertion of groups when a mesh is transformed)
authoreap <eap@opencascade.com>
Mon, 26 Nov 2007 15:17:33 +0000 (15:17 +0000)
committereap <eap@opencascade.com>
Mon, 26 Nov 2007 15:17:33 +0000 (15:17 +0000)
  fix names generation in generateGroups()

src/SMESH/SMESH_MeshEditor.cxx

index 4771bf9a02ad536bf87f1b2cd6e90005b4209b2d..81642823fd35b5db1d2e31420e90d777a1fdc46c 100644 (file)
@@ -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