diff options
author | nick_m <mainsbridge@gmail.com> | 2015-10-28 02:46:03 +1100 |
---|---|---|
committer | nick_m <mainsbridge@gmail.com> | 2015-10-28 02:46:03 +1100 |
commit | fc8b03eef54da4de254070b44906bb40b3a9f9b7 (patch) | |
tree | 93d43c129b0cd8a657f61a7be5cb7dc5e32d4e71 /gtk2_ardour/automation_line.cc | |
parent | 653e80ee21d1f76aa6aa53451a672282c7ea2f63 (diff) |
Fix incorrectly placed control points (y-axis). fixes #6647.
- also use the return from AutomationLine::drag_motion () in
anticipation of it correctly reporting its clamping to
AutomationRangeDrag.
Diffstat (limited to 'gtk2_ardour/automation_line.cc')
-rw-r--r-- | gtk2_ardour/automation_line.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gtk2_ardour/automation_line.cc b/gtk2_ardour/automation_line.cc index 72cf283ff4..edefa38ac0 100644 --- a/gtk2_ardour/automation_line.cc +++ b/gtk2_ardour/automation_line.cc @@ -694,7 +694,6 @@ AutomationLine::drag_motion (double const x, float fraction, bool ignore_x, bool } /* clamp y */ - for (list<ControlPoint*>::iterator i = _drag_points.begin(); i != _drag_points.end(); ++i) { double const y = ((_height - (*i)->get_y()) / _height) + dy; if (y < 0) { @@ -736,7 +735,7 @@ AutomationLine::drag_motion (double const x, float fraction, bool ignore_x, bool _last_drag_fraction = fraction; did_push = with_push; - return pair<double, float> (_drag_x + dx, _last_drag_fraction + dy); + return pair<double, float> (_drag_x + dx, fraction); } /** Should be called to indicate the end of a drag */ |