From a5cc3728c5c99e7969249f9289011f52b5747cc0 Mon Sep 17 00:00:00 2001 From: azv Date: Thu, 2 Apr 2015 18:13:03 +0300 Subject: [PATCH] Fix for issue #426 --- src/SketchSolver/SketchSolver_Constraint.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SketchSolver/SketchSolver_Constraint.cpp b/src/SketchSolver/SketchSolver_Constraint.cpp index 3c5b4be1b..4686f6f3c 100644 --- a/src/SketchSolver/SketchSolver_Constraint.cpp +++ b/src/SketchSolver/SketchSolver_Constraint.cpp @@ -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(); -- 2.39.2