mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-11 07:56:27 +01:00
Make sure we have the property rather than the value of patch change id.
(don't crash whenever someone adds a patch change and reloads the session).
This commit is contained in:
parent
ff13ac8b4f
commit
2d8b7c352b
1 changed files with 1 additions and 1 deletions
|
|
@ -1268,7 +1268,7 @@ MidiModel::PatchChangeDiffCommand::unmarshal_patch_change (XMLNode* n)
|
|||
}
|
||||
|
||||
PatchChangePtr p (new Evoral::PatchChange<TimeType> (time, channel, program, bank));
|
||||
assert(id);
|
||||
assert(n->property ("id"));
|
||||
p->set_id (id);
|
||||
return p;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue