From: dvlierop2 Date: Thu, 15 Mar 2007 18:29:04 +0000 (+0000) Subject: Fix for bug #1584301: block invalid snapping results X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=707a11904bc66fb832958f4e518a5988e31860f8;p=inkscape.git Fix for bug #1584301: block invalid snapping results --- 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); }