diff options
| author | Diederik van Lierop <mail@diedenrezi.nl> | 2009-03-14 13:35:53 +0000 |
|---|---|---|
| committer | dvlierop2 <dvlierop2@users.sourceforge.net> | 2009-03-14 13:35:53 +0000 |
| commit | 2985b1cb4f0fef5f7bdc3ced9bffed5726d87df3 (patch) | |
| tree | 8cf2bc230fcbc9722ac716d9c216decc0a8e8d19 /src/line-snapper.cpp | |
| parent | Texture filters Blotting paper, Burnt edges, Inkblot and Wax print improved f... (diff) | |
| download | inkscape-2985b1cb4f0fef5f7bdc3ced9bffed5726d87df3.tar.gz inkscape-2985b1cb4f0fef5f7bdc3ced9bffed5726d87df3.zip | |
2Geom migration: use 2geom::projection instead of libnr's project_on_linesegment
(bzr r7487)
Diffstat (limited to 'src/line-snapper.cpp')
| -rw-r--r-- | src/line-snapper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/line-snapper.cpp b/src/line-snapper.cpp index 72a6cc33d..dee944afd 100644 --- a/src/line-snapper.cpp +++ b/src/line-snapper.cpp @@ -47,7 +47,7 @@ void Inkscape::LineSnapper::freeSnap(SnappedConstraints &sc, // std::cout << " line through " << i->second << " with normal " << i->first; g_assert(i->first != Geom::Point(0,0)); // we cannot project on an linesegment of zero length - Geom::Point const p_proj = project_on_linesegment(p, p1, p2); + Geom::Point const p_proj = Geom::projection(p, Geom::Line(p1, p2)); Geom::Coord const dist = Geom::L2(p_proj - p); //Store any line that's within snapping range if (dist < getSnapperTolerance()) { |
