summaryrefslogtreecommitdiff
path: root/gtk2_ardour/automation_line.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-08-04 15:41:55 +0000
committerCarl Hetherington <carl@carlh.net>2010-08-04 15:41:55 +0000
commitcc6016400bbd903e5d2a1720708ecde8d71f44d3 (patch)
tree41166df0d8ac89193d4b6bc3c45897267d86e36e /gtk2_ardour/automation_line.cc
parentaa72da4f9ffc2f7011c2e7f801fb5c04ecbfa58f (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.cc8
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) {