]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Minor fixes.
authordbv <dbv@opencascade.com>
Thu, 2 Feb 2017 12:14:45 +0000 (15:14 +0300)
committerdbv <dbv@opencascade.com>
Thu, 2 Feb 2017 12:14:45 +0000 (15:14 +0300)
src/FeaturesPlugin/FeaturesPlugin_Tools.cpp

index 22431b98b62ab11c899b6abfff20a81dfc290b86..847a8916f7596ed0aac0bb5d2d96bfb4aaa7f050 100644 (file)
@@ -22,7 +22,6 @@ void FeaturesPlugin_Tools::storeModifiedShapes(GeomAlgoAPI_MakeShape& theAlgo,
       for(GeomAPI_ShapeIterator anIt(theBaseShape); anIt.more(); anIt.next())
       {
         storeModifiedShapes(theAlgo, theResultBody, theBaseShape, theTag, theName, theSubShapes);
-        theTag++;
       }
       break;
     }
@@ -36,15 +35,20 @@ void FeaturesPlugin_Tools::storeModifiedShapes(GeomAlgoAPI_MakeShape& theAlgo,
           || theBaseShape->shapeType() == GeomAPI_Shape::SOLID) {
         break;
       }
+      ++theTag;
     }
     case GeomAPI_Shape::FACE:
-    case GeomAPI_Shape::WIRE:
+    case GeomAPI_Shape::WIRE: {
       theResultBody->loadAndOrientModifiedShapes(&theAlgo,
                                 theBaseShape, GeomAPI_Shape::EDGE,
-                                ++theTag, theName + "_Edge", theSubShapes);
-    case GeomAPI_Shape::EDGE:
+                                theTag, theName + "_Edge", theSubShapes);
+      ++theTag;
+    }
+    case GeomAPI_Shape::EDGE: {
       theResultBody->loadAndOrientModifiedShapes(&theAlgo,
                               theBaseShape, GeomAPI_Shape::VERTEX,
-                              ++theTag, theName + "_Vertex", theSubShapes);
+                              theTag, theName + "_Vertex", theSubShapes);
+      ++theTag;
+    }
   }
 }