]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for issue #426
authorazv <azv@opencascade.com>
Thu, 2 Apr 2015 15:13:03 +0000 (18:13 +0300)
committerazv <azv@opencascade.com>
Thu, 2 Apr 2015 15:13:27 +0000 (18:13 +0300)
src/SketchSolver/SketchSolver_Constraint.cpp

index 3c5b4be1b8cb72478c378cd2b538b7154043a825..4686f6f3c36f2f8114a343a1246b9ffeffbafa38 100644 (file)
@@ -110,7 +110,7 @@ const int& SketchSolver_Constraint::getType(
     }
     // The constrained points should be in first and second positions,
     // so the expected value of aPt2d or aPt3d is 3
-    if ((aPt2d == 3 && aPt3d == 0) || (aPt2d == 0 && aPt3d == 3))
+    if (aPt2d + aPt3d == 3)
       myType = SLVS_C_POINTS_COINCIDENT;
     // Constraint parameters are wrong
     return getType();