diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-02-19 21:16:44 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-02-19 21:16:44 +0100 |
| commit | 73f7d494cdbfeaca6487a3160b13a98cc7f28a43 (patch) | |
| tree | b37652fc2b7f0943fba638a8d3ca1ca4c8d3fff0 /src | |
| parent | d38a1f6932e6c41c79f17399030869678badc00d (diff) | |
Add missing line in audio mapping view when there are no input groups.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/audio_mapping_view.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wx/audio_mapping_view.cc b/src/wx/audio_mapping_view.cc index 9c14f61e7..93aeca115 100644 --- a/src/wx/audio_mapping_view.cc +++ b/src/wx/audio_mapping_view.cc @@ -280,6 +280,11 @@ AudioMappingView::paint_row_labels (wxDC& dc) } dc.DrawLine (wxPoint(MINIMUM_COLUMN_WIDTH, y), wxPoint(MINIMUM_COLUMN_WIDTH * 2, y)); + if (_input_groups.empty()) { + auto const bottom = TOP_HEIGHT + _input_channels.size() * ROW_HEIGHT; + dc.DrawLine(wxPoint(MINIMUM_COLUMN_WIDTH, bottom), wxPoint(MINIMUM_COLUMN_WIDTH * 2, bottom)); + } + /* Group labels and lines; be careful here as wxDCClipper does not restore the old * clipping rectangle after it is destroyed */ |
