]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Decrease automatic numbering by one: feature is already in the map
authormpv <mpv@opencascade.com>
Fri, 10 Jul 2015 04:51:43 +0000 (07:51 +0300)
committermpv <mpv@opencascade.com>
Fri, 10 Jul 2015 04:51:43 +0000 (07:51 +0300)
src/Model/Model_Objects.cpp

index b6ebc0869503af9379df4fadf77a5861af971e39..72544d26ee8e83b0e73d13b1bd3699488dde37f9 100644 (file)
@@ -469,7 +469,7 @@ void Model_Objects::setUniqueName(FeaturePtr theFeature)
     return;  // not needed, name is already defined
   std::string aName;  // result
   // first count all features of such kind to start with index = count + 1
-  int aNumObjects = 0;
+  int aNumObjects = -1; // this feature is already in this map
   NCollection_DataMap<TDF_Label, FeaturePtr>::Iterator aFIter(myFeatures);
   for (; aFIter.More(); aFIter.Next()) {
     if (aFIter.Value()->getKind() == theFeature->getKind())