From: vsv Date: Thu, 9 Apr 2015 12:06:23 +0000 (+0300) Subject: Fix positions of constraint symbol if its Id > 4 X-Git-Tag: V_1.1.0~52^2~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3a9a170e58ae3efc92846114a72745054742c906;p=modules%2Fshaper.git Fix positions of constraint symbol if its Id > 4 --- diff --git a/src/SketcherPrs/SketcherPrs_PositionMgr.cpp b/src/SketcherPrs/SketcherPrs_PositionMgr.cpp index 1e8a9ee7d..ec7938b89 100644 --- a/src/SketcherPrs/SketcherPrs_PositionMgr.cpp +++ b/src/SketcherPrs/SketcherPrs_PositionMgr.cpp @@ -107,7 +107,7 @@ gp_Pnt SketcherPrs_PositionMgr::getPosition(ObjectPtr theShape, // Odd position aP.Translate(-aShift); if (aPos > 1) { - if (aPos % 4 == 0) + if ((aPos - 1) % 4 == 0) aM = (aPos - 1) / 4; else aM = -(aPos + 1) / 4;