X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FGeomValidators%2FGeomValidators_ShapeType.cpp;h=5b5fd026a674ebe4054bd91d782ad23d990eaab6;hb=1dfcab3d738e427bea678317e167c587dfbff195;hp=61e1a048bacf3a11d6530c1c839cc9b0c1eeda23;hpb=a77927df4517b2ad5f55402ea7226a7ada49df18;p=modules%2Fshaper.git diff --git a/src/GeomValidators/GeomValidators_ShapeType.cpp b/src/GeomValidators/GeomValidators_ShapeType.cpp index 61e1a048b..5b5fd026a 100644 --- a/src/GeomValidators/GeomValidators_ShapeType.cpp +++ b/src/GeomValidators/GeomValidators_ShapeType.cpp @@ -81,11 +81,11 @@ std::string getShapeTypeDescription(const GeomValidators_ShapeType::TypeOfShape& if (MyShapeTypes.size() != 0) { std::map::const_iterator anIt = MyShapeTypes.begin(), aLast = MyShapeTypes.end(); - for (; anIt != aLast; anIt++) { - if (anIt->second == theType) + for (; anIt != aLast; anIt++) + if (anIt->second == theType) { aValue = anIt->first; break; - } + } } return aValue; }