From fc8b03eef54da4de254070b44906bb40b3a9f9b7 Mon Sep 17 00:00:00 2001 From: nick_m Date: Wed, 28 Oct 2015 02:46:03 +1100 Subject: 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. --- gtk2_ardour/automation_line.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gtk2_ardour/automation_line.cc') 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::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 (_drag_x + dx, _last_drag_fraction + dy); + return pair (_drag_x + dx, fraction); } /** Should be called to indicate the end of a drag */ -- cgit v1.2.3