From ad7ff1ffd7c51e612e61cc86a8aa95d310aed4c6 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 24 Mar 2020 23:45:23 +0100 Subject: Do not trim MIDI region end to last event on session-load This amends 295fb3ff5a17e. Tape tracks were only available for audio data. --- libs/ardour/region.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardour/region.cc b/libs/ardour/region.cc index fbbeaac4ca..cb42f1d2cb 100644 --- a/libs/ardour/region.cc +++ b/libs/ardour/region.cc @@ -1402,7 +1402,7 @@ Region::_set_state (const XMLNode& node, int /*version*/, PropertyChange& what_c * punches/capture passes were carried out. */ - if (!_sources.empty()) { + if (!_sources.empty() && _type == DataType::AUDIO) { if (_length > _sources.front()->length(_position)) { _length = _sources.front()->length(_position) - _start; } -- cgit v1.2.3