From: nds Date: Fri, 10 Apr 2015 07:15:19 +0000 (+0300) Subject: A code correction X-Git-Tag: V_1.1.0~51^2~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9a2879b733af2c3a3b2fd34ad5f8e73c3478c629;p=modules%2Fshaper.git A code correction --- 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));