diff options
author | David Robillard <d@drobilla.net> | 2013-01-27 17:15:46 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2013-01-27 17:15:46 +0000 |
commit | 6375b5d278e6ca766de879d26fc6beb5eb11ca3c (patch) | |
tree | 5e106fa1fe92c28d5f097470fd6cf939fa29fcd7 /libs/midi++2 | |
parent | 6e58d32a6010239b63478371e3c7f654721b4ae9 (diff) |
Default to "7bit" controller type if missing, as per DTD.
git-svn-id: svn://localhost/ardour2/branches/3.0@14012 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/midi++2')
-rw-r--r-- | libs/midi++2/midnam_patch.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libs/midi++2/midnam_patch.cc b/libs/midi++2/midnam_patch.cc index b606728572..bf22792f70 100644 --- a/libs/midi++2/midnam_patch.cc +++ b/libs/midi++2/midnam_patch.cc @@ -243,7 +243,11 @@ int Control::set_state (const XMLTree& tree, const XMLNode& node) { assert(node.name() == "Control"); - _type = node.property("Type")->value(); + if (node.property("Type")) { + _type = node.property("Type")->value(); + } else { + _type = "7bit"; + } _number = string_to_int(tree, node.property("Number")->value()); _name = node.property("Name")->value(); |