13
0

Do not trim MIDI region end to last event on session-load

This amends 295fb3ff5a. Tape tracks were only available
for audio data.
This commit is contained in:
Robin Gareus 2020-03-24 23:45:23 +01:00
parent fe6c5f98b2
commit ad7ff1ffd7
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -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;
}