]> git.donarmstrong.com Git - lilypond.git/commitdiff
Robustify Staff_symbol_referencer::on_line ().
authorNeil Puttock <n.puttock@gmail.com>
Tue, 12 Aug 2008 23:18:07 +0000 (00:18 +0100)
committerNeil Puttock <n.puttock@gmail.com>
Tue, 12 Aug 2008 23:18:07 +0000 (00:18 +0100)
Ensure Staff_symbol::on_line () is called using staff-symbol grob, if present.

lily/staff-symbol-referencer.cc

index dbff0245c609874af177b329914bafcc8d1056d5..4d1c3552c7a7cfceeba41ece0975fd3444c2dff8 100644 (file)
@@ -35,7 +35,8 @@ Staff_symbol_referencer::on_staff_line (Grob *me)
 bool
 Staff_symbol_referencer::on_line (Grob *me, int pos)
 {
-  return Staff_symbol::on_line (me, pos);
+  Grob *st = get_staff_symbol (me);
+  return st ? Staff_symbol::on_line (st, pos) : false;
 }
 
 bool