From 6375b5d278e6ca766de879d26fc6beb5eb11ca3c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 27 Jan 2013 17:15:46 +0000 Subject: 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 --- libs/midi++2/midnam_patch.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libs') 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(); -- cgit v1.2.3