summaryrefslogtreecommitdiff
path: root/gtk2_ardour/port_matrix_column_labels.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2020-04-09 14:00:10 -0600
committerPaul Davis <paul@linuxaudiosystems.com>2020-04-09 14:01:47 -0600
commit980a38a988e5cf42592747180d33451c0eeda21f (patch)
tree71b827db2e4d12a4d020ee4cdf65e1881788e104 /gtk2_ardour/port_matrix_column_labels.cc
parentbe023ef32d9eb2ed7cb0efcdc7b49d31c9576738 (diff)
still show port names in bundles with only a single port a given type
The bundle name is typically insufficient to identify the port
Diffstat (limited to 'gtk2_ardour/port_matrix_column_labels.cc')
-rw-r--r--gtk2_ardour/port_matrix_column_labels.cc20
1 files changed, 7 insertions, 13 deletions
diff --git a/gtk2_ardour/port_matrix_column_labels.cc b/gtk2_ardour/port_matrix_column_labels.cc
index ed81933b9e..f8bbf19004 100644
--- a/gtk2_ardour/port_matrix_column_labels.cc
+++ b/gtk2_ardour/port_matrix_column_labels.cc
@@ -376,21 +376,15 @@ PortMatrixColumnLabels::render_channel_name (
);
}
- if (_matrix->count_of_our_type (bc.bundle->nchannels()) > 1) {
-
- /* only plot the name if the bundle has more than one channel;
- the name of a single channel is assumed to be redundant */
-
- cairo_save (cr);
- cairo_rotate (cr, -angle());
+ cairo_save (cr);
+ cairo_rotate (cr, -angle());
- cairo_show_text (
- cr,
- bc.bundle->channel_name(bc.channel).c_str()
- );
+ cairo_show_text (
+ cr,
+ bc.bundle->channel_name(bc.channel).c_str()
+ );
- cairo_restore (cr);
- }
+ cairo_restore (cr);
}
double