mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-26 00:17:49 +01:00
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:
parent
6e58d32a60
commit
6375b5d278
1 changed files with 5 additions and 1 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue