summaryrefslogtreecommitdiffstats
path: root/src/libnr
diff options
context:
space:
mode:
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;
}