projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f771679
)
fix 03c4335c1e20311 to use the correct test for zero length
author
Paul Davis
<paul@linuxaudiosystems.com>
Tue, 14 Jan 2020 21:34:57 +0000
(14:34 -0700)
committer
Paul Davis
<paul@linuxaudiosystems.com>
Tue, 14 Jan 2020 21:35:08 +0000
(14:35 -0700)
That commit used the dangerous Beats::operator== (int) comparison, which only campares the beat portion
gtk2_ardour/midi_region_view.cc
patch
|
blob
|
history
diff --git
a/gtk2_ardour/midi_region_view.cc
b/gtk2_ardour/midi_region_view.cc
index 3db3be3fdfec3e401b9fa95c3a6e1f049d11453b..a9a3f9868850aed6dae65fba1c7379c88b48002c 100644
(file)
--- a/
gtk2_ardour/midi_region_view.cc
+++ b/
gtk2_ardour/midi_region_view.cc
@@
-1759,7
+1759,7
@@
MidiRegionView::update_sustained (Note* ev, bool update_ghost_regions)
const double y0 = 1 + floor(note_to_y(note->note()));
double y1;
- if (note->length() ==
0
) {
+ if (note->length() ==
Temporal::Beats()
) {
/* special case actual zero-length notes */