From 3212fc6136d551861a771ec449552c73766e58dc Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 2 Jul 2019 19:41:49 +0300 Subject: [PATCH] Fix issue with a passmark. --HG-- branch : develop --- src/libs/vpatterndb/vpiece.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/libs/vpatterndb/vpiece.cpp b/src/libs/vpatterndb/vpiece.cpp index bf0de0480..d92110895 100644 --- a/src/libs/vpatterndb/vpiece.cpp +++ b/src/libs/vpatterndb/vpiece.cpp @@ -903,7 +903,8 @@ bool VPiece::GetPassmarkPreviousSAPoints(const QVector &path, int in do { const VSAPoint previous = points.at(nodeIndex); - if (not VFuzzyComparePoints(passmarkSAPoint, previous)) + QLineF line(passmarkSAPoint, previous); + if (line.length() >= ToPixel(1, Unit::Mm)) { point = previous; found = true; @@ -940,7 +941,8 @@ bool VPiece::GetPassmarkNextSAPoints(const QVector &path, int index, do { const VSAPoint next = points.at(nodeIndex); - if (not VFuzzyComparePoints(passmarkSAPoint, next)) + QLineF line(passmarkSAPoint, next); + if (line.length() >= ToPixel(1, Unit::Mm)) { point = next; found = true;