Fix a few SNAFUs in the port matrix related to multi-type bundles (#4454).

git-svn-id: svn://localhost/ardour2/branches/3.0@10494 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2011-11-08 14:15:28 +00:00
parent 420d5d6592
commit b37bc5e5b2
4 changed files with 42 additions and 4 deletions

View file

@ -156,10 +156,12 @@ PortMatrixColumnLabels::render (cairo_t* cr)
for (uint32_t j = 0; j < C; ++j) {
Gdk::Color c = (*i)->has_colour ? (*i)->colour : get_a_bundle_colour (N);
ARDOUR::BundleChannel bc (
(*i)->bundle,
(*i)->bundle->type_channel_to_overall (_matrix->type (), j)
);
render_channel_name (cr, background_colour (), c, x, 0, bc);
x += grid_spacing();
}