+int
+calc_measure_duration_log (Grob *me, bool paranoid)
+{
+ SCM sml = dynamic_cast<Spanner *> (me)->get_bound (LEFT)
+ ->get_property ("measure-length");
+ Rational ml = (unsmob_moment (sml)) ? unsmob_moment (sml)->main_part_
+ : Rational (1);
+ double measure_duration = ml.Rational::to_double ();
+ bool force_round_up = to_boolean (scm_list_p (scm_member (scm_cons (scm_from_int64 (ml.numerator ()),
+ scm_from_int64 (ml.denominator ())),
+ me->get_property ("round-up-exceptions"))));
+
+ return calc_closest_duration_log (me, measure_duration, force_round_up, paranoid);
+}
+
+Stencil
+Multi_measure_rest::symbol_stencil (Grob *me, Real space)
+{
+ int measure_count = 0;
+ SCM m (me->get_property ("measure-count"));
+ if (scm_is_number (m))
+ measure_count = scm_to_int (m);
+ if (measure_count <= 0)
+ return Stencil ();
+
+ SCM limit = me->get_property ("expand-limit");
+ if (measure_count > scm_to_int (limit))