mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
Allow region-based automation axes to report whether they
have automation data or not. Should fix #3177. git-svn-id: svn://localhost/ardour2/branches/3.0@7158 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
ef94fbf11c
commit
a57b9cdd99
5 changed files with 29 additions and 1 deletions
|
|
@ -941,3 +941,10 @@ AutomationTimeAxisView::set_visibility (bool yn)
|
|||
|
||||
return changed;
|
||||
}
|
||||
|
||||
/** @return true if this view has any automation data to display */
|
||||
bool
|
||||
AutomationTimeAxisView::has_automation () const
|
||||
{
|
||||
return ( (_line && _line->npoints() > 0) || (_view && _view->has_automation()) );
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue