13
0

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
This commit is contained in:
David Robillard 2013-01-27 17:15:46 +00:00
parent 6e58d32a60
commit 6375b5d278

View File

@ -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();