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:
Carl Hetherington 2010-05-25 15:51:32 +00:00
parent ef94fbf11c
commit a57b9cdd99
5 changed files with 29 additions and 1 deletions

View file

@ -1676,7 +1676,7 @@ RouteTimeAxisView::show_existing_automation ()
/* Show our automation */
for (AutomationTracks::iterator i = _automation_tracks.begin(); i != _automation_tracks.end(); ++i) {
if (i->second->line() && i->second->line()->npoints() > 0) {
if (i->second->has_automation()) {
i->second->set_marked_for_display (true);
i->second->canvas_display()->show();
i->second->get_state_node()->add_property ("shown", X_("yes"));