Handle hidden tracks better.
authorCarl Hetherington <carl@carlh.net>
Sat, 20 Jun 2009 17:55:14 +0000 (17:55 +0000)
committerCarl Hetherington <carl@carlh.net>
Sat, 20 Jun 2009 17:55:14 +0000 (17:55 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@5230 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/editor_group_tabs.cc

index 8b67550952ff11442c60555c4c8a7e7a5eda749c..c2b0ec1c40abdf8df2c7b3f68ca97b6ca534cb6a 100644 (file)
@@ -66,6 +66,11 @@ EditorGroupTabs::render (cairo_t* cr)
 
        int32_t y = 0;
        for (Editor::TrackViewList::iterator i = _editor->track_views.begin(); i != _editor->track_views.end(); ++i) {
+
+               if ((*i)->marked_for_display() == false) {
+                       continue;
+               }
+               
                RouteGroup* g = (*i)->edit_group ();
 
                if (g != curr_group) {