]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/staff-symbol-referencer.cc
Fix MIDI output for Kievan
[lilypond.git] / lily / staff-symbol-referencer.cc
index 74c2c448c61c2407bb14778050b62c354f91b3ab..b18bb04fa3b8f7f2dd6b8d60206e09ac2fb08863 100644 (file)
@@ -41,7 +41,8 @@ Staff_symbol_referencer::on_line (Grob *me, int pos)
 bool
 Staff_symbol_referencer::on_staff_line (Grob *me, int pos)
 {
-  return on_line (me, pos) && abs (pos) <= 2 * staff_radius (me);
+  Grob *st = get_staff_symbol (me);
+  return st ? Staff_symbol::on_line (st, pos, false) : false;
 }
 
 Grob *