summaryrefslogtreecommitdiff
path: root/libs/canvas/utils.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/canvas/utils.cc')
-rw-r--r--libs/canvas/utils.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/canvas/utils.cc b/libs/canvas/utils.cc
index 7b81cf5951..2c8905b331 100644
--- a/libs/canvas/utils.cc
+++ b/libs/canvas/utils.cc
@@ -94,7 +94,7 @@ ArdourCanvas::distance_to_segment_squared (Duple const & p, Duple const & p1, Du
// extending the segment, parameterized as p1 + (t * (p2 - p1)),
// we find projection of point p onto the line.
// It falls where t = [(p - p1) . (p2 - p1)] / |p2 - p1|^2
-
+
t = ((dp1x * dx) + (dp1y * dy)) / segLenSquared;
if (t < kEpsilon) {