From: Reinhold Kainhofer Date: Tue, 26 Feb 2008 17:04:51 +0000 (+0100) Subject: Fix alignment problem with text crescendi X-Git-Tag: release/2.11.42-1~12 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=4d096d8d410469c24762b52baebcfe7c52418f09;p=lilypond.git Fix alignment problem with text crescendi Text crescendi starting at skips caused a "Programmierfehler: Improbable offset for stencil: nan staff space" error message and moved the text crescendi to the very beginning of the staff. Instead of grob->extent(...), use robust_relative_extent (grob, ...), which also works with skips. Signed-off-by: Reinhold Kainhofer --- diff --git a/lily/line-spanner.cc b/lily/line-spanner.cc index e9f18461a1..7c62929738 100644 --- a/lily/line-spanner.cc +++ b/lily/line-spanner.cc @@ -100,7 +100,7 @@ Line_spanner::calc_bound_info (SCM smob, Direction dir) } details = scm_acons (ly_symbol2scm ("X"), - scm_from_double (bound_grob->extent (commonx, X_AXIS) + scm_from_double (robust_relative_extent (bound_grob, commonx, X_AXIS) .linear_combination (attach)), details); } @@ -343,7 +343,7 @@ Line_spanner::print (SCM smob) line.translate (Offset (-me->relative_coordinate (commonx, X_AXIS), -me->relative_coordinate (my_common_y, Y_AXIS))); - + return line.smobbed_copy (); }