From: azv Date: Thu, 2 Apr 2015 15:13:03 +0000 (+0300) Subject: Fix for issue #426 X-Git-Tag: V_1.1.0~57^2~22 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a5cc3728c5c99e7969249f9289011f52b5747cc0;p=modules%2Fshaper.git Fix for issue #426 --- 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();