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:
nick_m 2015-02-06 00:53:12 +11:00
parent ff13ac8b4f
commit 2d8b7c352b

View file

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