diff options
Diffstat (limited to 'gtk2_ardour/automation_streamview.cc')
-rw-r--r-- | gtk2_ardour/automation_streamview.cc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gtk2_ardour/automation_streamview.cc b/gtk2_ardour/automation_streamview.cc index 9471d7c406..3eeb3bd6eb 100644 --- a/gtk2_ardour/automation_streamview.cc +++ b/gtk2_ardour/automation_streamview.cc @@ -209,3 +209,20 @@ AutomationStreamView::automation_state () const return line->the_list()->automation_state (); } + +bool +AutomationStreamView::has_automation () const +{ + list<RegionView*>::const_iterator i = region_views.begin (); + while (i != region_views.end()) { + AutomationRegionView* rv = static_cast<AutomationRegionView*> (*i); + if (rv->line() && rv->line()->npoints() > 0) { + return true; + } + ++i; + } + + return false; +} + + |