Fix note-grid, canvas bounding-box offset.
[ardour.git] / gtk2_ardour / midi_streamview.cc
index 23d31932d836d4cf30f94974ae9711633d59fc41..fe121a47709550fc5c5a9d02e9f3c4c052008392 100644 (file)
@@ -358,7 +358,7 @@ MidiStreamView::draw_note_lines()
                double h = y - prev_y;
                double mid = y + (h/2.0);
 
-               if (height > 1.0) { // XXX ? should that not be h >= 1 ?
+               if (mid >= 0 && h > 1.0) {
                        _note_lines->add (mid, h, color);
                }