diff --git a/libs/ardour/midi_region.cc b/libs/ardour/midi_region.cc index cdfe8fe57b..697df1fa35 100644 --- a/libs/ardour/midi_region.cc +++ b/libs/ardour/midi_region.cc @@ -570,6 +570,8 @@ MidiRegion::merge (std::shared_ptr other_region) * self->position <= other->position () */ + assert (position() <= other_region->position ()); + while ((e1 != self->end ()) || (e2 != other->end ())) { /* map time from other region to this region */ Temporal::Beats e2t;