- warning (_f("Symbol not found, ", name.ch_C()));
- }
-
- int interspaces = Staff_symbol_referencer::line_count (me)-1;
- int pos = (int)rint (Staff_symbol_referencer::position_f (me));
- if (abs (pos) - interspaces > 1)
- {
- Interval hd = out.extent (X_AXIS);
- Real left_ledger_protusion = hd.length ()/4;
- Real right_ledger_protusion = left_ledger_protusion;
-
- if (unsmob_grob(me->get_grob_property ("accidental-grob")))
- {
- /*
- make a little room for accidentals.
-
- TODO: this will look silly if a chord has ledger lines,
- and only the bottom note has an accidental.
- */
-
- left_ledger_protusion *= 0.66;
- right_ledger_protusion *= 0.9;
- }
-
- Interval l_extents = Interval (hd[LEFT] - left_ledger_protusion,
- hd[RIGHT] + right_ledger_protusion);
- out.add_molecule (Note_head::brew_ledger_lines (me, pos, interspaces,
- l_extents,
- ledger_take_space));
+ me->warning (_f ("none of note heads `%s' or `%s' found",
+ idx_symmetric.c_str (), idx_directed.c_str ()));
+ out = Stencil (Box (Interval (0, 0), Interval (0, 0)), SCM_EOL);