diff options
author | Carl Hetherington <carl@carlh.net> | 2010-09-09 21:35:28 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-09-09 21:35:28 +0000 |
commit | 86244875a40206694c142af8fe1128f28293c467 (patch) | |
tree | 7a643215fa39e9538fff5fc282139866c44fe529 /gtk2_ardour/automation_time_axis.cc | |
parent | 5f27e70016a88cbb9a77275ce3e5798540f9bbdf (diff) |
Allow drags of automation in time ranges where the automation is on a MIDI track and may span different regions. Fixes #3366.
git-svn-id: svn://localhost/ardour2/branches/3.0@7765 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/automation_time_axis.cc')
-rw-r--r-- | gtk2_ardour/automation_time_axis.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gtk2_ardour/automation_time_axis.cc b/gtk2_ardour/automation_time_axis.cc index b356ce7595..760794dd1e 100644 --- a/gtk2_ardour/automation_time_axis.cc +++ b/gtk2_ardour/automation_time_axis.cc @@ -1044,3 +1044,17 @@ AutomationTimeAxisView::has_automation () const { return ( (_line && _line->npoints() > 0) || (_view && _view->has_automation()) ); } + +list<boost::shared_ptr<AutomationLine> > +AutomationTimeAxisView::lines () const +{ + list<boost::shared_ptr<AutomationLine> > lines; + + if (_line) { + lines.push_back (_line); + } else if (_view) { + lines = _view->get_lines (); + } + + return lines; +} |