projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36dd7f8
)
Fix reversed ratio in last commit.
author
nick_m
<mainsbridge@gmail.com>
Thu, 29 Oct 2015 13:01:33 +0000
(
00:01
+1100)
committer
nick_m
<mainsbridge@gmail.com>
Thu, 29 Oct 2015 13:01:33 +0000
(
00:01
+1100)
gtk2_ardour/editor_drag.cc
patch
|
blob
|
history
diff --git
a/gtk2_ardour/editor_drag.cc
b/gtk2_ardour/editor_drag.cc
index 2421706ff251b0831f998c7541a2e85882ccbe30..aaa306f70f1d10bb4a7725ced1ccb2376c9914b2 100644
(file)
--- a/
gtk2_ardour/editor_drag.cc
+++ b/
gtk2_ardour/editor_drag.cc
@@
-4334,7
+4334,7
@@
LineDrag::start_grab (GdkEvent* event, Gdk::Cursor* /*cursor*/)
/* store grab start in parent frame */
double const bx = _line->nth (_before)->get_x();
double const ax = _line->nth (_after)->get_x();
- double const click_ratio = (
mx - b
x) / (ax - bx);
+ double const click_ratio = (
ax - m
x) / (ax - bx);
double const cy = ((_line->nth (_before)->get_y() * click_ratio) + (_line->nth (_after)->get_y() * (1 - click_ratio)));