projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d38a1f6
)
Add missing line in audio mapping view when there are no input groups.
author
Carl Hetherington
<cth@carlh.net>
Sun, 19 Feb 2023 20:16:44 +0000
(21:16 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Sun, 19 Feb 2023 20:16:44 +0000
(21:16 +0100)
src/wx/audio_mapping_view.cc
patch
|
blob
|
history
diff --git
a/src/wx/audio_mapping_view.cc
b/src/wx/audio_mapping_view.cc
index 9c14f61e78f421bc54f867247daf62a2fd6ee27f..93aeca1159fa3c45a0db534ebb10855ad9e29fa1 100644
(file)
--- 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
*/