From: Carl Hetherington Date: Sun, 19 Feb 2023 20:16:44 +0000 (+0100) Subject: Add missing line in audio mapping view when there are no input groups. X-Git-Tag: v2.16.45~27 X-Git-Url: https://git.carlh.net/gitweb/?a=commitdiff_plain;h=73f7d494cdbfeaca6487a3160b13a98cc7f28a43;p=dcpomatic.git Add missing line in audio mapping view when there are no input groups. --- 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 */