From 3a9a170e58ae3efc92846114a72745054742c906 Mon Sep 17 00:00:00 2001 From: vsv Date: Thu, 9 Apr 2015 15:06:23 +0300 Subject: [PATCH] Fix positions of constraint symbol if its Id > 4 --- src/SketcherPrs/SketcherPrs_PositionMgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2