From 4d096d8d410469c24762b52baebcfe7c52418f09 Mon Sep 17 00:00:00 2001 From: Reinhold Kainhofer Date: Tue, 26 Feb 2008 18:04:51 +0100 Subject: [PATCH] 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 --- lily/line-spanner.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 (); } -- 2.39.5