Don't draw MIDI note horizontal grid lines if they would be
authorCarl Hetherington <carl@carlh.net>
Wed, 14 Sep 2011 16:07:57 +0000 (16:07 +0000)
committerCarl Hetherington <carl@carlh.net>
Wed, 14 Sep 2011 16:07:57 +0000 (16:07 +0000)
less than 3 pixels apart (#4300).

git-svn-id: svn://localhost/ardour2/branches/3.0@10080 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/midi_streamview.cc

index 9c109c2c21393ad2837533925c2bebd5b4911a44..b3caa8d8274311cb6dcf3acfcd8d30852c366555 100644 (file)
@@ -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;
        }