summaryrefslogtreecommitdiff
path: root/lily/key-reg.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lily/key-reg.cc')
-rw-r--r--lily/key-reg.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lily/key-reg.cc b/lily/key-reg.cc
index 0694a3b83f..dbff99f0a1 100644
--- a/lily/key-reg.cc
+++ b/lily/key-reg.cc
@@ -44,7 +44,7 @@ Key_register::acknowledge_element(Staff_elem_info info)
change_key_b_ = true;
}
- if (info.elem_p_->name() == Bar::static_name())
+ if (info.elem_l_->name() == Bar::static_name())
default_key_b_ = true;
}