From 8dde7e7f5da1c0be359b60a631154de89060f707 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 29 Jan 2011 12:41:10 +0000 Subject: [PATCH] Fix crash on unchecking show individual ports (#3740). git-svn-id: svn://localhost/ardour2/branches/3.0@8607 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/port_matrix.cc | 4 ++-- gtk2_ardour/port_matrix_grid.cc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gtk2_ardour/port_matrix.cc b/gtk2_ardour/port_matrix.cc index e5e307d2cd..5b747d6693 100644 --- a/gtk2_ardour/port_matrix.cc +++ b/gtk2_ardour/port_matrix.cc @@ -958,8 +958,8 @@ PortMatrix::get_association (PortMatrixNode node) const } ARDOUR::BundleChannel c[2]; - c[column_index()] = ARDOUR::BundleChannel (node.row.bundle, i); - c[row_index()] = ARDOUR::BundleChannel (node.column.bundle, j); + c[row_index()] = ARDOUR::BundleChannel (node.row.bundle, i); + c[column_index()] = ARDOUR::BundleChannel (node.column.bundle, j); PortMatrixNode::State const s = get_state (c); diff --git a/gtk2_ardour/port_matrix_grid.cc b/gtk2_ardour/port_matrix_grid.cc index a3da295c8b..96e9cb949c 100644 --- a/gtk2_ardour/port_matrix_grid.cc +++ b/gtk2_ardour/port_matrix_grid.cc @@ -144,8 +144,8 @@ PortMatrixGrid::render (cairo_t* cr) for (PortGroup::BundleList::const_iterator j = row_bundles.begin(); j != row_bundles.end(); ++j) { 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) { case PortMatrixNode::ASSOCIATED: