From: dbv Date: Thu, 2 Feb 2017 12:14:45 +0000 (+0300) Subject: Minor fixes. X-Git-Tag: V_2.7.0~291 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b314c951295864bfb0c7a56bf9d14b4453b23657;p=modules%2Fshaper.git Minor fixes. --- diff --git a/src/FeaturesPlugin/FeaturesPlugin_Tools.cpp b/src/FeaturesPlugin/FeaturesPlugin_Tools.cpp index 22431b98b..847a8916f 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_Tools.cpp +++ b/src/FeaturesPlugin/FeaturesPlugin_Tools.cpp @@ -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; + } } }