diff options
| author | Krzysztof Kosi??ski <tweenk.pl@gmail.com> | 2011-08-28 21:53:33 +0000 |
|---|---|---|
| committer | Krzysztof Kosinski <tweenk.pl@gmail.com> | 2011-08-28 21:53:33 +0000 |
| commit | 7c7326a95acfd6885bf1b29d80679ea84d96c5fb (patch) | |
| tree | a64cfe0dc6abdea48a15585594cebb6a8368cf90 /src/gradient-context.cpp | |
| parent | Remove nr-object.h and nr-macros.h (diff) | |
| download | inkscape-7c7326a95acfd6885bf1b29d80679ea84d96c5fb.tar.gz inkscape-7c7326a95acfd6885bf1b29d80679ea84d96c5fb.zip | |
Completely remove libnr
(bzr r10582.1.11)
Diffstat (limited to 'src/gradient-context.cpp')
| -rw-r--r-- | src/gradient-context.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gradient-context.cpp b/src/gradient-context.cpp index c4bef4683..0cb000003 100644 --- a/src/gradient-context.cpp +++ b/src/gradient-context.cpp @@ -46,8 +46,6 @@ #include "sp-namedview.h" #include "rubberband.h" -#include "libnr/nr-point-fns.h" - using Inkscape::DocumentUndo; static void sp_gradient_context_class_init(SPGradientContextClass *klass); @@ -254,7 +252,8 @@ sp_gradient_context_is_over_line (SPGradientContext *rc, SPItem *item, Geom::Poi SPCtrlLine* line = SP_CTRLLINE(item); - Geom::Point nearest = snap_vector_midpoint (rc->mousepoint_doc, line->s, line->e, 0); + Geom::LineSegment ls(line->s, line->e); + Geom::Point nearest = ls.pointAt(ls.nearestPoint(rc->mousepoint_doc)); double dist_screen = Geom::L2 (rc->mousepoint_doc - nearest) * desktop->current_zoom(); double tolerance = (double) SP_EVENT_CONTEXT(rc)->tolerance; |
