From 0621c6d7ff695fca923ff3aa3003f25fccf94b32 Mon Sep 17 00:00:00 2001 From: Diederik van Lierop Date: Mon, 18 Jul 2011 22:07:56 +0200 Subject: Replace NR_HUGE by Geom:infinity() in some snapping code (bzr r10469) --- src/object-snapper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/object-snapper.cpp') diff --git a/src/object-snapper.cpp b/src/object-snapper.cpp index 1267eda37..389930b57 100644 --- a/src/object-snapper.cpp +++ b/src/object-snapper.cpp @@ -287,7 +287,7 @@ void Inkscape::ObjectSnapper::_snapNodes(SnappedConstraints &sc, for (std::vector::const_iterator k = _points_to_snap_to->begin(); k != _points_to_snap_to->end(); k++) { if (_allowSourceToSnapToTarget(p.getSourceType(), (*k).getTargetType(), strict_snapping)) { Geom::Point target_pt = (*k).getPoint(); - Geom::Coord dist = NR_HUGE; + Geom::Coord dist = Geom::infinity(); if (!c.isUndefined()) { // We're snapping to nodes along a constraint only, so find out if this node // is at the constraint, while allowing for a small margin -- cgit v1.2.3