#include "axis-group-interface.hh"
#include "font-interface.hh"
#include "grob-interface.hh"
-#include "international.hh"
#include "item.hh"
#include "lily-proto.hh"
#include "line-interface.hh"
? Axis_group_interface::generic_bound_extent (bound_grob, commonx, X_AXIS)
: robust_relative_extent (bound_grob, commonx, X_AXIS)).linear_combination (attach);
- Grob *acc = Note_column::accidentals (bound_grob->get_parent (X_AXIS));
+ Grob *acc = unsmob_grob (bound_grob->get_object ("accidental-grob"));
if (acc && to_boolean (ly_assoc_get (ly_symbol2scm ("end-on-accidental"), details, SCM_BOOL_F)))
x_coord = robust_relative_extent (acc, commonx, X_AXIS).linear_combination (attach);
}
else
{
- y = me->get_bound (dir)->extent (common_y, Y_AXIS).center ();
+ Interval ii = me->get_bound (dir)->extent (common_y, Y_AXIS);
+ if (!ii.is_empty())
+ y = ii.center ();
details = scm_acons (ly_symbol2scm ("common-Y"), common_y->self_scm (), details);
}
arrows[LEFT],
arrows[RIGHT]));
}
- else
- me->warning (_ ("Line spanner's left point is to the right of its right point."));
line.translate (Offset (-me->relative_coordinate (commonx, X_AXIS),
simple_y ? 0.0 : -me->relative_coordinate (my_common_y, Y_AXIS)));