diff options
author | nick_m <mainsbridge@gmail.com> | 2015-02-06 00:53:12 +1100 |
---|---|---|
committer | nick_m <mainsbridge@gmail.com> | 2015-02-06 00:53:12 +1100 |
commit | 2d8b7c352bb6d1234d655b6b7a50a8d3c1ea608e (patch) | |
tree | 2c1527e0625e5ca7fd00e067f58a07f4223a087d /libs/ardour/midi_model.cc | |
parent | ff13ac8b4f61b384af64c38009ff2533c0615409 (diff) |
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).
Diffstat (limited to 'libs/ardour/midi_model.cc')
-rw-r--r-- | libs/ardour/midi_model.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/midi_model.cc b/libs/ardour/midi_model.cc index e3226e036f..06ea307664 100644 --- a/libs/ardour/midi_model.cc +++ b/libs/ardour/midi_model.cc @@ -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; } |