X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fmulti-measure-rest.cc;h=df06f790dfb00e8f6201682fe3466c22ff0524ee;hb=9869001f35f8715208dbcdb8460f94472a429236;hp=c0f26f5c857c394f1db2de658594919de77e5414;hpb=1152d91a1c8ac90528660df7dfa6be2181f89c05;p=lilypond.git diff --git a/lily/multi-measure-rest.cc b/lily/multi-measure-rest.cc index c0f26f5c85..df06f790df 100644 --- a/lily/multi-measure-rest.cc +++ b/lily/multi-measure-rest.cc @@ -115,6 +115,21 @@ Multi_measure_rest::print (SCM smob) return mol.smobbed_copy (); } +MAKE_SCHEME_CALLBACK (Multi_measure_rest, height, 1); +SCM +Multi_measure_rest::height (SCM smob) +{ + Grob *me = unsmob_grob (smob); + Spanner *sp = dynamic_cast (me); + + Real space = 1000000; // something very large... + + Stencil mol; + mol.add_stencil (symbol_stencil (me, space)); + + return ly_interval2scm (mol.extent (Y_AXIS)); +} + int calc_closest_duration_log (Grob *me, double duration, bool force_round_up, bool paranoid) { @@ -135,7 +150,8 @@ calc_closest_duration_log (Grob *me, double duration, bool force_round_up, bool && (to_boolean (scm_null_p (duration_logs_list)) || !to_boolean (scm_list_p (duration_logs_list)))) { - warning (_ ("usable-duration-logs must be a non-empty list. Falling back to whole rests.")); + warning (_ ("usable-duration-logs must be a non-empty list." + " Falling back to whole rests.")); closest_usable_duration_log = 0; } else @@ -324,7 +340,7 @@ Multi_measure_rest::calculate_spacing_rods (Grob *me, Real length) if (!spacing) spacing = unsmob_grob (ri->get_object ("spacing")); if (!spacing) - me->warning ("Using naive multi measure rest spacing."); + me->warning (_ ("Using naive multi measure rest spacing.")); else { Spacing_options options;