diff options
author | Carl Hetherington <carl@carlh.net> | 2010-05-25 15:51:32 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-05-25 15:51:32 +0000 |
commit | a57b9cdd99b47fde8bfa265c0f72a380bb5cbb6f (patch) | |
tree | f7b4fe20b24ab41c0cccaff32c7173e1e14f605f /gtk2_ardour/route_time_axis.cc | |
parent | ef94fbf11ca36fc088e58cfa5691cbca7c7a3390 (diff) |
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
Diffstat (limited to 'gtk2_ardour/route_time_axis.cc')
-rw-r--r-- | gtk2_ardour/route_time_axis.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/route_time_axis.cc b/gtk2_ardour/route_time_axis.cc index 873eb171d2..9093abca1b 100644 --- a/gtk2_ardour/route_time_axis.cc +++ b/gtk2_ardour/route_time_axis.cc @@ -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")); |