From b27200688b1520fbcba7e6e5b555ae95f1fc4bf1 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 22 Nov 2011 20:29:12 +0000 Subject: [PATCH 1/1] fix mis-ordering of MIDI events when merging MidiBuffers in-place git-svn-id: svn://localhost/ardour2/branches/3.0@10779 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/midi_buffer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardour/midi_buffer.cc b/libs/ardour/midi_buffer.cc index f62a3b4c39..7138d52589 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; } -- 2.30.2