From bbda37c28fde645f856fde01ec6fbc0a9fea3c84 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 16 Mar 2017 03:47:46 +0100 Subject: [PATCH] Fix note-grid, canvas bounding-box offset. Note lines on a MIDI-track were able to exceed the time-axis' height towards the top. If a MIDI track was at the top, the TAV's canvas-group would increase the overall bounding-box of the track-area and allow tracks to visually bleed into the time markers group. --- gtk2_ardour/midi_streamview.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk2_ardour/midi_streamview.cc b/gtk2_ardour/midi_streamview.cc index 23d31932d8..fe121a4770 100644 --- a/gtk2_ardour/midi_streamview.cc +++ b/gtk2_ardour/midi_streamview.cc @@ -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); }