diff options
| author | Diederik van Lierop <mail@diedenrezi.nl> | 2011-07-18 20:07:56 +0000 |
|---|---|---|
| committer | Diederik van Lierop <mail@diedenrezi.nl> | 2011-07-18 20:07:56 +0000 |
| commit | 0621c6d7ff695fca923ff3aa3003f25fccf94b32 (patch) | |
| tree | 5c8d6b0a2ebca59caa52dc4ef0a3eb08228fdd40 /src/object-snapper.cpp | |
| parent | consistency fix (potential bug) (diff) | |
| download | inkscape-0621c6d7ff695fca923ff3aa3003f25fccf94b32.tar.gz inkscape-0621c6d7ff695fca923ff3aa3003f25fccf94b32.zip | |
Replace NR_HUGE by Geom:infinity() in some snapping code
(bzr r10469)
Diffstat (limited to '')
| -rw-r--r-- | src/object-snapper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<SnapCandidatePoint>::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 |
