Fix crash on unchecking show individual ports (#3740).
git-svn-id: svn://localhost/ardour2/branches/3.0@8607 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
a052488c00
commit
8dde7e7f5d
@ -958,8 +958,8 @@ PortMatrix::get_association (PortMatrixNode node) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
ARDOUR::BundleChannel c[2];
|
ARDOUR::BundleChannel c[2];
|
||||||
c[column_index()] = ARDOUR::BundleChannel (node.row.bundle, i);
|
c[row_index()] = ARDOUR::BundleChannel (node.row.bundle, i);
|
||||||
c[row_index()] = ARDOUR::BundleChannel (node.column.bundle, j);
|
c[column_index()] = ARDOUR::BundleChannel (node.column.bundle, j);
|
||||||
|
|
||||||
PortMatrixNode::State const s = get_state (c);
|
PortMatrixNode::State const s = get_state (c);
|
||||||
|
|
||||||
|
@ -144,8 +144,8 @@ PortMatrixGrid::render (cairo_t* cr)
|
|||||||
for (PortGroup::BundleList::const_iterator j = row_bundles.begin(); j != row_bundles.end(); ++j) {
|
for (PortGroup::BundleList::const_iterator j = row_bundles.begin(); j != row_bundles.end(); ++j) {
|
||||||
|
|
||||||
PortMatrixNode::State s = _matrix->get_association (PortMatrixNode (
|
PortMatrixNode::State s = _matrix->get_association (PortMatrixNode (
|
||||||
ARDOUR::BundleChannel ((*i)->bundle, 0),
|
ARDOUR::BundleChannel ((*j)->bundle, 0),
|
||||||
ARDOUR::BundleChannel ((*j)->bundle, 0)
|
ARDOUR::BundleChannel ((*i)->bundle, 0)
|
||||||
));
|
));
|
||||||
switch (s) {
|
switch (s) {
|
||||||
case PortMatrixNode::ASSOCIATED:
|
case PortMatrixNode::ASSOCIATED:
|
||||||
|
Loading…
Reference in New Issue
Block a user