summaryrefslogtreecommitdiffstats
path: root/src/libnr
diff options
context:
space:
mode:
authorDiederik van Lierop <mail@diedenrezi.nl>2007-12-27 19:45:52 +0000
committerdvlierop2 <dvlierop2@users.sourceforge.net>2007-12-27 19:45:52 +0000
commitef2e57886d26946690d4f98db587fc6cd3ec615a (patch)
tree5e5eab0d2c866db21ca926101991298be0c85501 /src/libnr
parentfixed bad markup in translation (diff)
downloadinkscape-ef2e57886d26946690d4f98db587fc6cd3ec615a.tar.gz
inkscape-ef2e57886d26946690d4f98db587fc6cd3ec615a.zip
Snapping a guide to nodes (while dragging it across the canvas) now also works for angled guides
(bzr r4321)
Diffstat (limited to 'src/libnr')
-rw-r--r--src/libnr/nr-point-fns.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libnr/nr-point-fns.cpp b/src/libnr/nr-point-fns.cpp
index 4428ed9b3..a7b128bdb 100644
--- a/src/libnr/nr-point-fns.cpp
+++ b/src/libnr/nr-point-fns.cpp
@@ -111,6 +111,8 @@ project_on_linesegment(NR::Point const p, NR::Point const p1, NR::Point const p2
// calculate u according to "Minimum Distance between a Point and a Line"
// see http://local.wasp.uwa.edu.au/~pbourke/geometry/pointline/
+ // Warning: projected points will not necessarily be in between the endpoints of the linesegments!
+
if (p1 == p2) { // to avoid div. by zero below
return p;
}