summaryrefslogtreecommitdiff
path: root/gtk2_ardour/port_matrix_row_labels.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2009-07-17 14:21:54 +0000
committerCarl Hetherington <carl@carlh.net>2009-07-17 14:21:54 +0000
commit748ad24ace7a37059b6812a1f9f0145d4725ba66 (patch)
tree162026ac28a6331013f37b0ee1d8cbbb46a08300 /gtk2_ardour/port_matrix_row_labels.cc
parentbe40312e01ea36e1aaa86cae8551e42353849bc2 (diff)
Small optimisation. Fix mouseover highlighting in the port matrix.
git-svn-id: svn://localhost/ardour2/branches/3.0@5369 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/port_matrix_row_labels.cc')
-rw-r--r--gtk2_ardour/port_matrix_row_labels.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk2_ardour/port_matrix_row_labels.cc b/gtk2_ardour/port_matrix_row_labels.cc
index ded591278e..4802d4ca33 100644
--- a/gtk2_ardour/port_matrix_row_labels.cc
+++ b/gtk2_ardour/port_matrix_row_labels.cc
@@ -316,8 +316,9 @@ PortMatrixRowLabels::channel_y (ARDOUR::BundleChannel const& bc) const
{
uint32_t n = 0;
- PortGroup::BundleList::const_iterator i = _matrix->rows()->bundles().begin();
- while (i != _matrix->rows()->bundles().end() && i->bundle != bc.bundle) {
+ PortGroup::BundleList const & bundles = _matrix->rows()->bundles();
+ PortGroup::BundleList::const_iterator i = bundles.begin ();
+ while (i != bundles.end() && i->bundle != bc.bundle) {
if (_matrix->show_only_bundles()) {
n += 1;
} else {