projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
NOOP, remove trailing tabs/whitespace.
[ardour.git]
/
libs
/
canvas
/
utils.cc
diff --git
a/libs/canvas/utils.cc
b/libs/canvas/utils.cc
index 7b81cf59519994ff73160fd415f335fc218ff222..2c8905b331a0233c97fc12836a07ae2dd7ad23e3 100644
(file)
--- 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) {