From 9a2879b733af2c3a3b2fd34ad5f8e73c3478c629 Mon Sep 17 00:00:00 2001 From: nds Date: Fri, 10 Apr 2015 10:15:19 +0300 Subject: [PATCH] A code correction --- src/SketchPlugin/SketchPlugin_ConstraintDistance.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SketchPlugin/SketchPlugin_ConstraintDistance.cpp b/src/SketchPlugin/SketchPlugin_ConstraintDistance.cpp index b7f708a9c..3ee3e65ea 100644 --- a/src/SketchPlugin/SketchPlugin_ConstraintDistance.cpp +++ b/src/SketchPlugin/SketchPlugin_ConstraintDistance.cpp @@ -105,7 +105,7 @@ bool SketchPlugin_ConstraintDistance::compute(const std::string& theAttributeId) std::shared_ptr aPoint1 = sketch()->to3D(aPnt_A->x(), aPnt_A->y()); std::shared_ptr aPoint2 = sketch()->to3D(aPnt_B->x(), aPnt_B->y()); // it is not possible to create lin2d on the points with equal position - if (aPoint1->distance(aPoint1) < tolerance) + if (aPoint1->distance(aPoint2) < tolerance) return false; std::shared_ptr aLine = std::shared_ptr(new GeomAPI_Lin2d(aPnt_A, aPnt_B)); -- 2.39.2