diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2012-11-19 18:18:09 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2012-11-19 18:18:09 +0000 |
commit | eb1382bd9aae3d433f78d55fdee9abc071bf7dd8 (patch) | |
tree | c04cfc348e9dadb1f50d8c445b9b7d05cc846578 | |
parent | 0e2396cd785efbcbb5597791e0b9f9aaa9e7a088 (diff) |
minor tweaks
git-svn-id: svn://localhost/ardour2/branches/3.0@13532 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r-- | gtk2_ardour/automation_line.cc | 12 |
1 files changed, 5 insertions, 7 deletions
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<double,float> (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<Selectable*>& results - ) +AutomationLine::get_selectables (framepos_t start, framepos_t end, double botfrac, double topfrac, list<Selectable*>& results) { /* convert fractions to display coordinates with 0 at the top of the track */ double const bot_track = (1 - topfrac) * trackview.current_height (); |