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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user