mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 15:54:57 +01:00
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:
parent
fe6c5f98b2
commit
ad7ff1ffd7
1 changed files with 1 additions and 1 deletions
|
|
@ -1402,7 +1402,7 @@ Region::_set_state (const XMLNode& node, int /*version*/, PropertyChange& what_c
|
||||||
* punches/capture passes were carried out.
|
* punches/capture passes were carried out.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (!_sources.empty()) {
|
if (!_sources.empty() && _type == DataType::AUDIO) {
|
||||||
if (_length > _sources.front()->length(_position)) {
|
if (_length > _sources.front()->length(_position)) {
|
||||||
_length = _sources.front()->length(_position) - _start;
|
_length = _sources.front()->length(_position) - _start;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue