diff options
author | David Robillard <d@drobilla.net> | 2014-11-18 02:52:56 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-11-18 02:55:04 -0500 |
commit | e8716de015a9ea4fb53e852335c0e3b4e4393fb1 (patch) | |
tree | d95c6f6337e6d5b781da72fe4285b9f5a4637cbd /gtk2_ardour/midi_channel_selector.cc | |
parent | bd577a0663ca30a9e5718b3fad52fc200d103fdd (diff) |
Make MIDI channel selector rows/col constraints actually do something.
Seems kind of pointless since it's always 4 anyway, but whatever.
Diffstat (limited to 'gtk2_ardour/midi_channel_selector.cc')
-rw-r--r-- | gtk2_ardour/midi_channel_selector.cc | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/gtk2_ardour/midi_channel_selector.cc b/gtk2_ardour/midi_channel_selector.cc index b51584aef5..4884d72328 100644 --- a/gtk2_ardour/midi_channel_selector.cc +++ b/gtk2_ardour/midi_channel_selector.cc @@ -44,14 +44,11 @@ using namespace Gtk; using namespace ARDOUR; MidiChannelSelector::MidiChannelSelector(int n_rows, int n_columns, int start_row, int start_column) - : Table(n_rows, n_columns, true) + : Table(std::max(4, std::max(n_rows, start_row + 4)), + std::max(4, std::max(n_columns, start_column + 4)), + true) , _recursion_counter(0) { - n_rows = std::max(4, n_rows); - n_rows = std::max(4, start_row + 4); - n_columns = std::max(4, n_columns); - n_columns = std::max(4, start_column + 4); - property_column_spacing() = 0; property_row_spacing() = 0; |