mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-19 13:16:27 +01:00
Preserve source's model on clone() if it is not rebuilt. Should fix #3155.
git-svn-id: svn://localhost/ardour2/branches/3.0@7149 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
dd134d8afb
commit
32d2e2eaac
1 changed files with 3 additions and 1 deletions
|
|
@ -266,6 +266,8 @@ MidiSource::clone (Evoral::MusicalTime begin, Evoral::MusicalTime end)
|
|||
|
||||
if (begin != Evoral::MinMusicalTime || end != Evoral::MaxMusicalTime) {
|
||||
newsrc->load_model (true, true);
|
||||
} else {
|
||||
newsrc->set_model (_model);
|
||||
}
|
||||
|
||||
return newsrc;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue