summaryrefslogtreecommitdiff
path: root/gtk2_ardour/midi_streamview.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2011-09-14 16:07:57 +0000
committerCarl Hetherington <carl@carlh.net>2011-09-14 16:07:57 +0000
commit69da82a0213ebac8dfa42af90f8c798df5ed7947 (patch)
tree05d13afeac6a37b5e489ca9d6925095fe6b4eae1 /gtk2_ardour/midi_streamview.cc
parent8f5dd22c511737e4da61a727498d7229ddb588c1 (diff)
Don't draw MIDI note horizontal grid lines if they would be
less than 3 pixels apart (#4300). git-svn-id: svn://localhost/ardour2/branches/3.0@10080 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/midi_streamview.cc')
-rw-r--r--gtk2_ardour/midi_streamview.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk2_ardour/midi_streamview.cc b/gtk2_ardour/midi_streamview.cc
index 9c109c2c21..b3caa8d827 100644
--- a/gtk2_ardour/midi_streamview.cc
+++ b/gtk2_ardour/midi_streamview.cc
@@ -315,7 +315,8 @@ MidiStreamView::draw_note_lines()
_note_lines->clear();
- if (child_height() < 140){
+ if (child_height() < 140 || note_height() < 3) {
+ /* track is too small for note lines, or there are too many */
return;
}