#include "staff-symbol-referencer.hh"
#include "note-column.hh"
#include "stem.hh"
-
-bool
-Staff_spacing::has_interface (Grob* g)
-{
- return g && g->has_interface (ly_symbol2scm ("staff-spacing-interface"));
-}
+#include "accidental-placement.hh"
/*
Insert some more space for the next note, in case it has a stem in
*/
if (Grob * a = Note_column::accidentals (g))
{
- max_corr = max_corr >? (- a->extent (col, X_AXIS)[LEFT]);
+ Interval v= Accidental_placement::get_relevant_accidental_extent
+ (a, col, me);
+
+ max_corr = max_corr >? (- v[LEFT]);
}
if (Grob* a = unsmob_grob (g->get_grob_property ("arpeggio")))
{
ADD_INTERFACE (Staff_spacing,"staff-spacing-interface",
"",
- "left-items right-items");
+ "stem-spacing-correction left-items right-items");