projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9dd35ca
)
Tweak group label formatting in AudioMappingView.
author
Carl Hetherington
<cth@carlh.net>
Wed, 1 Jun 2016 13:18:56 +0000
(14:18 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Wed, 1 Jun 2016 13:18:56 +0000
(14:18 +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 46560e094258f92b15bc3cedd08fe034262081b9..d984defee646cf7e00243918e4aa55067575e0da 100644
(file)
--- a/
src/wx/audio_mapping_view.cc
+++ b/
src/wx/audio_mapping_view.cc
@@
-386,7
+386,13
@@
AudioMappingView::paint_left_labels ()
wxCoord label_height;
dc.GetTextExtent (std_to_wx (i.name), &label_width, &label_height);
- dc.DrawRotatedText (i.name, half + (half - label_height) / 2, (ypos + old_ypos + label_width) / 2, 90);
+ dc.DrawRotatedText (
+ i.name,
+ half + (half - label_height) / 2,
+ min (ypos, (ypos + old_ypos + label_width) / 2),
+ 90
+ );
+
dc.DestroyClippingRegion ();
lines.MoveToPoint (half, ypos);