]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix positions of constraint symbol if its Id > 4
authorvsv <vitaly.smetannikov@opencascade.com>
Thu, 9 Apr 2015 12:06:23 +0000 (15:06 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Thu, 9 Apr 2015 12:06:23 +0000 (15:06 +0300)
src/SketcherPrs/SketcherPrs_PositionMgr.cpp

index 1e8a9ee7d6a14629b86a7a1839c0f45745570a18..ec7938b89abfd58c7fdf66432b34ca550ae76a9d 100644 (file)
@@ -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;