Add missing line in audio mapping view when there are no input groups.
authorCarl Hetherington <cth@carlh.net>
Sun, 19 Feb 2023 20:16:44 +0000 (21:16 +0100)
committerCarl Hetherington <cth@carlh.net>
Sun, 19 Feb 2023 20:16:44 +0000 (21:16 +0100)
src/wx/audio_mapping_view.cc

index 9c14f61e78f421bc54f867247daf62a2fd6ee27f..93aeca1159fa3c45a0db534ebb10855ad9e29fa1 100644 (file)
@@ -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
         */