summaryrefslogtreecommitdiff
path: root/libs/ardour/midi_buffer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/midi_buffer.cc')
-rw-r--r--libs/ardour/midi_buffer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/midi_buffer.cc b/libs/ardour/midi_buffer.cc
index 7138d52589..f62a3b4c39 100644
--- a/libs/ardour/midi_buffer.cc
+++ b/libs/ardour/midi_buffer.cc
@@ -318,7 +318,7 @@ MidiBuffer::merge_in_place(const MidiBuffer &other)
the event referenced by "us"
*/
- while (them != other.end() && (*them).time() < (*us).time()) {
+ while (them != other.end() && (*them).time() <= (*us).time()) {
if (src == -1) {
src = them.offset;
}