summaryrefslogtreecommitdiff
path: root/gtk2_ardour/port_matrix_body.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-12-10 17:27:13 +0000
committerCarl Hetherington <carl@carlh.net>2010-12-10 17:27:13 +0000
commitfb0097ca793c9e65bd2ad14d453642bb7bc43ee9 (patch)
tree14055d56c935a2e694ff479a08207805dafef908 /gtk2_ardour/port_matrix_body.cc
parent4a9a5dea2658bb6a88f2eb74e32b264586ce2e32 (diff)
Fix crash on mouseover.
git-svn-id: svn://localhost/ardour2/branches/3.0@8236 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/port_matrix_body.cc')
-rw-r--r--gtk2_ardour/port_matrix_body.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/gtk2_ardour/port_matrix_body.cc b/gtk2_ardour/port_matrix_body.cc
index 009c63fa2a..35e7faa3a6 100644
--- a/gtk2_ardour/port_matrix_body.cc
+++ b/gtk2_ardour/port_matrix_body.cc
@@ -476,9 +476,12 @@ PortMatrixBody::highlight_associated_channels (int dim, ARDOUR::BundleChannel h)
if (!_matrix->should_show ((*i)->bundle->channel_type(j))) {
continue;
}
-
+
bc[1 - dim] = ARDOUR::BundleChannel ((*i)->bundle, j);
- if (_matrix->get_state (bc) == PortMatrixNode::ASSOCIATED) {
+
+ PortMatrixNode n (bc[0], bc[1]);
+
+ if (_matrix->get_association(n) != PortMatrixNode::NOT_ASSOCIATED) {
if (dim == _matrix->column_index()) {
_row_labels->add_channel_highlight (bc[1 - dim]);
} else {