From 2d8b7c352bb6d1234d655b6b7a50a8d3c1ea608e Mon Sep 17 00:00:00 2001 From: nick_m Date: Fri, 6 Feb 2015 00:53:12 +1100 Subject: 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). --- libs/ardour/midi_model.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/ardour/midi_model.cc') 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 (time, channel, program, bank)); - assert(id); + assert(n->property ("id")); p->set_id (id); return p; } -- cgit v1.2.3