diff options
author | Carl Hetherington <carl@carlh.net> | 2010-08-04 15:41:55 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-08-04 15:41:55 +0000 |
commit | cc6016400bbd903e5d2a1720708ecde8d71f44d3 (patch) | |
tree | 41166df0d8ac89193d4b6bc3c45897267d86e36e /gtk2_ardour/automation_line.cc | |
parent | aa72da4f9ffc2f7011c2e7f801fb5c04ecbfa58f (diff) |
Allow rubberband selection of MIDI automation points. Fixes
git-svn-id: svn://localhost/ardour2/branches/3.0@7535 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/automation_line.cc')
-rw-r--r-- | gtk2_ardour/automation_line.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk2_ardour/automation_line.cc b/gtk2_ardour/automation_line.cc index 7d5ca540a8..dd5f11f042 100644 --- a/gtk2_ardour/automation_line.cc +++ b/gtk2_ardour/automation_line.cc @@ -948,14 +948,14 @@ AutomationLine::remove_point (ControlPoint& cp) } void -AutomationLine::get_selectables (nframes_t& start, nframes_t& end, +AutomationLine::get_selectables (nframes_t start, nframes_t end, double botfrac, double topfrac, list<Selectable*>& results) { double top; double bot; - double nstart; - double nend; + sframes_t nstart; + sframes_t nend; bool collecting = false; /* Curse X11 and its inverted coordinate system! */ @@ -967,7 +967,7 @@ AutomationLine::get_selectables (nframes_t& start, nframes_t& end, nend = 0; for (vector<ControlPoint*>::iterator i = control_points.begin(); i != control_points.end(); ++i) { - double when = (*(*i)->model())->when; + sframes_t const when = _time_converter.to ((*(*i)->model())->when); if (when >= start && when <= end) { |