summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
Diffstat (limited to 'libs')
-rw-r--r--libs/midi++2/midnam_patch.cc6
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();