diff options
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; +} |