From af5b9f92a52f08d154ad84c60c61823cb45b62db Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 18 Jul 2009 13:10:08 +0000 Subject: Various tweaks to the port matrix. git-svn-id: svn://localhost/ardour2/branches/3.0@5380 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/port_matrix_column_labels.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'gtk2_ardour/port_matrix_column_labels.cc') 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)); -- cgit v1.2.3