diff options
author | Robin Gareus <robin@gareus.org> | 2020-03-24 23:45:23 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-03-24 23:45:23 +0100 |
commit | ad7ff1ffd7c51e612e61cc86a8aa95d310aed4c6 (patch) | |
tree | 8350265ae586c1097ac5f9a1c41eb1a1c74ed82a /libs/ardour/region.cc | |
parent | fe6c5f98b2c6afeeb752ca8236dac8a4988201d7 (diff) |
Do not trim MIDI region end to last event on session-load
This amends 295fb3ff5a17e. Tape tracks were only available
for audio data.
Diffstat (limited to 'libs/ardour/region.cc')
-rw-r--r-- | libs/ardour/region.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |