From eb1382bd9aae3d433f78d55fdee9abc071bf7dd8 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 19 Nov 2012 18:18:09 +0000 Subject: minor tweaks git-svn-id: svn://localhost/ardour2/branches/3.0@13532 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/automation_line.cc | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'gtk2_ardour/automation_line.cc') diff --git a/gtk2_ardour/automation_line.cc b/gtk2_ardour/automation_line.cc index 7e34738001..b067757cb0 100644 --- a/gtk2_ardour/automation_line.cc +++ b/gtk2_ardour/automation_line.cc @@ -589,7 +589,6 @@ AutomationLine::drag_motion (double const x, float fraction, bool ignore_x, bool return pair (x,fraction); } - double dx = ignore_x ? 0 : (x - _drag_x); double dy = fraction - _last_drag_fraction; @@ -671,10 +670,11 @@ AutomationLine::drag_motion (double const x, float fraction, bool ignore_x, bool ++i; } } + + /* update actual line coordinates (will queue a redraw) + */ - if (line_points.size() > 1) { - line->property_points() = line_points; - } + line->property_points() = line_points; } _drag_distance += dx; @@ -821,9 +821,7 @@ AutomationLine::remove_point (ControlPoint& cp) * @param result Filled in with selectable things; in this case, ControlPoints. */ void -AutomationLine::get_selectables ( - framepos_t start, framepos_t end, double botfrac, double topfrac, list& results - ) +AutomationLine::get_selectables (framepos_t start, framepos_t end, double botfrac, double topfrac, list& results) { /* convert fractions to display coordinates with 0 at the top of the track */ double const bot_track = (1 - topfrac) * trackview.current_height (); -- cgit v1.2.3