diff options
author | Robin Gareus <robin@gareus.org> | 2017-03-16 03:47:46 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-03-16 03:47:46 +0100 |
commit | bbda37c28fde645f856fde01ec6fbc0a9fea3c84 (patch) | |
tree | d0074b7c0a0a16737bb5538d1cdc74444607d4bb /gtk2_ardour | |
parent | 3aefd0e74495c327599c76a918caa1df11064b21 (diff) |
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.
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/midi_streamview.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |