diff --git a/libs/surfaces/cc121/cc121.cc b/libs/surfaces/cc121/cc121.cc index dce1a63b54..0051901f1d 100644 --- a/libs/surfaces/cc121/cc121.cc +++ b/libs/surfaces/cc121/cc121.cc @@ -782,7 +782,7 @@ CC121::set_state (const XMLNode& node, int version) for (XMLNodeList::const_iterator n = node.children().begin(); n != node.children().end(); ++n) { if ((*n)->name() == X_("Button")) { int32_t xid; - if (!node.get_property ("id", xid)) { + if (!(*n)->get_property ("id", xid)) { continue; } ButtonMap::iterator b = buttons.find (ButtonID (xid));