From 707a11904bc66fb832958f4e518a5988e31860f8 Mon Sep 17 00:00:00 2001 From: dvlierop2 Date: Thu, 15 Mar 2007 18:29:04 +0000 Subject: [PATCH] Fix for bug #1584301: block invalid snapping results --- src/snap.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/snap.cpp b/src/snap.cpp index 253066ca4..86fae1572 100644 --- a/src/snap.cpp +++ b/src/snap.cpp @@ -301,7 +301,9 @@ std::pair SnapManager::_snapTransformed( } } - return std::make_pair(best_transformation, best_metric < NR_HUGE); + // Using " < 1e6" instead of " < NR::HUGE" for catching some rounding errors + // These rounding errors might be caused by NRRects, see bug #1584301 + return std::make_pair(best_transformation, best_metric < 1e6); } -- 2.30.2