diff options
author | Carl Hetherington <carl@carlh.net> | 2009-01-24 01:46:13 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2009-01-24 01:46:13 +0000 |
commit | ff656003a84201f4a9accf4f24233bee02642af2 (patch) | |
tree | cb6119f59a15d76a54221cbea979465781000244 /gtk2_ardour/port_matrix_grid.cc | |
parent | 0187028eb0e7e3e42b9799b7e55388f1d099abdb (diff) |
Try to avoid adding system ports to the port matrix twice. Fix some whitespace problems.
git-svn-id: svn://localhost/ardour2/branches/3.0@4437 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/port_matrix_grid.cc')
-rw-r--r-- | gtk2_ardour/port_matrix_grid.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk2_ardour/port_matrix_grid.cc b/gtk2_ardour/port_matrix_grid.cc index 13e1dcf4c2..f63cd231d7 100644 --- a/gtk2_ardour/port_matrix_grid.cc +++ b/gtk2_ardour/port_matrix_grid.cc @@ -200,15 +200,15 @@ PortMatrixGrid::button_press (double x, double y, int b) PortMatrix::State const s = _port_matrix->get_state ( our_bundle, our_channel, other_bundle, other_channel ); - + if (s == PortMatrix::ASSOCIATED || s == PortMatrix::NOT_ASSOCIATED) { bool const n = !(s == PortMatrix::ASSOCIATED); - _port_matrix->set_state ( - our_bundle, our_channel, other_bundle, other_channel, + _port_matrix->set_state ( + our_bundle, our_channel, other_bundle, other_channel, n, 0 - ); + ); } require_render (); |