From ed626628b54e67dd9621c08d82a42afaed00c7ac Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 1 Jun 2011 17:00:29 +0000 Subject: Delete trailing whitespace git-svn-id: svn://localhost/ardour2/branches/3.0@9656 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/port_matrix_component.cc | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'gtk2_ardour/port_matrix_component.cc') diff --git a/gtk2_ardour/port_matrix_component.cc b/gtk2_ardour/port_matrix_component.cc index b2425dcef4..38a07479b0 100644 --- a/gtk2_ardour/port_matrix_component.cc +++ b/gtk2_ardour/port_matrix_component.cc @@ -155,17 +155,17 @@ PortMatrixComponent::channel_to_position (ARDOUR::BundleChannel bc, boost::share if ((*i)->bundle == bc.bundle) { /* found the bundle */ - + if (_matrix->show_only_bundles()) { return p; } else { return p + bc.channel; } - + } /* move past this bundle */ - + if (_matrix->show_only_bundles()) { p += 1; } else { @@ -181,30 +181,30 @@ ARDOUR::BundleChannel PortMatrixComponent::position_to_channel (double p, double, boost::shared_ptr group) const { p /= grid_spacing (); - + PortGroup::BundleList const & bundles = group->bundles (); for (PortGroup::BundleList::const_iterator j = bundles.begin(); j != bundles.end(); ++j) { if (_matrix->show_only_bundles()) { - + if (p < 1) { return ARDOUR::BundleChannel ((*j)->bundle, -1); } else { p -= 1; } - + } else { - + uint32_t const s = _matrix->count_of_our_type ((*j)->bundle->nchannels()); if (p < s) { return ARDOUR::BundleChannel ((*j)->bundle, p); } else { p -= s; } - + } - + } - + return ARDOUR::BundleChannel (boost::shared_ptr (), -1); } -- cgit v1.2.3