diff options
author | Carl Hetherington <carl@carlh.net> | 2012-06-03 15:47:23 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2012-06-03 15:47:23 +0000 |
commit | d2f61e0f4c5029a98a339db65bd67bfe53b9defb (patch) | |
tree | e304e915424ce76351946d1bc328ef3e9b38ab04 | |
parent | b07a93ee0f3af5aabb4df4fd222cbc78216e6310 (diff) |
Look in the UsesPatchNameList for the name rather than
its parent.
git-svn-id: svn://localhost/ardour2/branches/3.0@12551 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r-- | libs/midi++2/midnam_patch.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/midi++2/midnam_patch.cc b/libs/midi++2/midnam_patch.cc index efc6c1c6a0..86edc7504e 100644 --- a/libs/midi++2/midnam_patch.cc +++ b/libs/midi++2/midnam_patch.cc @@ -236,7 +236,7 @@ PatchBank::set_state (const XMLTree& tree, const XMLNode& node) } else { XMLNode* use_patch_name_list = node.child ("UsesPatchNameList"); if (use_patch_name_list) { - _patch_list_name = node.property ("Name")->value(); + _patch_list_name = use_patch_name_list->property ("Name")->value(); } else { error << "Patch without patch name list - patchfile will be ignored" << endmsg; return -1; @@ -475,7 +475,7 @@ MIDINameDocument::MIDINameDocument (const string& filename) if (!_document.read (filename)) { throw failed_constructor (); } - + set_state (_document, *_document.root()); } |