summaryrefslogtreecommitdiff
path: root/gtk2_ardour/port_matrix_column_labels.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2009-07-18 13:10:08 +0000
committerCarl Hetherington <carl@carlh.net>2009-07-18 13:10:08 +0000
commitaf5b9f92a52f08d154ad84c60c61823cb45b62db (patch)
tree7dd95f16010440218d6320efc7b05ff47e8b5218 /gtk2_ardour/port_matrix_column_labels.cc
parent000802d23f3ccf0eccb8681716cce228106b753c (diff)
Various tweaks to the port matrix.
git-svn-id: svn://localhost/ardour2/branches/3.0@5380 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/port_matrix_column_labels.cc')
-rw-r--r--gtk2_ardour/port_matrix_column_labels.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/gtk2_ardour/port_matrix_column_labels.cc b/gtk2_ardour/port_matrix_column_labels.cc
index 148397d0c5..3183d96a9d 100644
--- a/gtk2_ardour/port_matrix_column_labels.cc
+++ b/gtk2_ardour/port_matrix_column_labels.cc
@@ -150,7 +150,7 @@ PortMatrixColumnLabels::render (cairo_t* cr)
/* compute width of this group */
uint32_t w = 0;
- if (!(*i)->visible() || (*i)->bundles().empty()) {
+ if (!(*i)->visible()) {
w = grid_spacing ();
} else {
if (_matrix->show_only_bundles()) {
@@ -158,7 +158,11 @@ PortMatrixColumnLabels::render (cairo_t* cr)
} else {
w = (*i)->total_channels() * grid_spacing();
}
- }
+ }
+
+ if (w == 0) {
+ continue;
+ }
/* rectangle */
set_source_rgb (cr, get_a_group_colour (g));