diff options
author | nick_m <mainsbridge@gmail.com> | 2015-10-30 00:01:33 +1100 |
---|---|---|
committer | nick_m <mainsbridge@gmail.com> | 2015-10-30 00:01:33 +1100 |
commit | 73328172d6d76c0100dc4f9b902cd175e6e4456f (patch) | |
tree | 521601d98ff0d7349a8c393fff1595ad7d9b9e1e /gtk2_ardour | |
parent | 36dd7f8d9d602d5e609277e0c2cf0cd8454eac72 (diff) |
Fix reversed ratio in last commit.
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/editor_drag.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/editor_drag.cc b/gtk2_ardour/editor_drag.cc index 2421706ff2..aaa306f70f 100644 --- 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 - bx) / (ax - bx); + double const click_ratio = (ax - mx) / (ax - bx); double const cy = ((_line->nth (_before)->get_y() * click_ratio) + (_line->nth (_after)->get_y() * (1 - click_ratio))); |