mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 07:45:00 +01:00
still show port names in bundles with only a single port a given type
The bundle name is typically insufficient to identify the port
This commit is contained in:
parent
be023ef32d
commit
980a38a988
1 changed files with 7 additions and 13 deletions
|
|
@ -376,21 +376,15 @@ PortMatrixColumnLabels::render_channel_name (
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_matrix->count_of_our_type (bc.bundle->nchannels()) > 1) {
|
cairo_save (cr);
|
||||||
|
cairo_rotate (cr, -angle());
|
||||||
|
|
||||||
/* only plot the name if the bundle has more than one channel;
|
cairo_show_text (
|
||||||
the name of a single channel is assumed to be redundant */
|
cr,
|
||||||
|
bc.bundle->channel_name(bc.channel).c_str()
|
||||||
|
);
|
||||||
|
|
||||||
cairo_save (cr);
|
cairo_restore (cr);
|
||||||
cairo_rotate (cr, -angle());
|
|
||||||
|
|
||||||
cairo_show_text (
|
|
||||||
cr,
|
|
||||||
bc.bundle->channel_name(bc.channel).c_str()
|
|
||||||
);
|
|
||||||
|
|
||||||
cairo_restore (cr);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
double
|
double
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue