projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix note-grid, canvas bounding-box offset.
[ardour.git]
/
gtk2_ardour
/
midi_streamview.cc
diff --git
a/gtk2_ardour/midi_streamview.cc
b/gtk2_ardour/midi_streamview.cc
index 23d31932d836d4cf30f94974ae9711633d59fc41..fe121a47709550fc5c5a9d02e9f3c4c052008392 100644
(file)
--- 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);
}