diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-06-01 14:18:56 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-06-01 14:18:56 +0100 |
| commit | bf1191b8c548903f7a7d0664a51d15611573d00b (patch) | |
| tree | 06fea4512296276e2de2dbfb63a22b1019058ee3 /src | |
| parent | 9dd35cac8c6ca8198eb858891dfb0a0d9cdede4c (diff) | |
Tweak group label formatting in AudioMappingView.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/audio_mapping_view.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/wx/audio_mapping_view.cc b/src/wx/audio_mapping_view.cc index 46560e094..d984defee 100644 --- 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); |
