-Real
-Staff_spacing::left_stickout (Grob *me, Grob *g)
-{
- if (!g || !Note_column::has_interface (g))
- return 0;
-
- Item *col = dynamic_cast<Item *> (g)->get_column ();
- Real ret = max (0., (- g->extent (col, X_AXIS)[LEFT]));
-
- /*
- Duh. If this gets out of hand, we should invent something more generic.
- */
- Grob *accs = Note_column::accidentals (g);
- if (accs)
- {
- Interval v;
- if (Accidental_placement::has_interface (accs))
- v = Accidental_placement::get_relevant_accidental_extent (accs, col, me);
- else
- v = accs->extent (col, X_AXIS);
-
- ret = max (ret, (- v[LEFT]));
- }
- Grob *arpeggio = unsmob_grob (g->get_object ("arpeggio"));
- if (arpeggio)
- ret = max (ret, - arpeggio->extent (col, X_AXIS)[LEFT]);
+/* A stem following a bar-line creates an optical illusion similar to the
+ one mentioned in note-spacing.cc. We correct for it here.