From 5fc254fd81594e00380d23d913f6ef19b82a3948 Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Tue, 13 Jun 2006 11:22:10 +0000 Subject: [PATCH] (y_offset_callback): bugfix: decide position override based on scm_is_number(). Fixes \rest on center staff line --- ChangeLog | 4 ++++ lily/rest.cc | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c125b3fc40..db2d33695f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2006-06-13 Han-Wen Nienhuys + * lily/rest.cc (y_offset_callback): bugfix: decide position + override based on scm_is_number(). Fixes \rest on center staff + line + * lily/beaming-pattern.cc (best_splitpoint_index): fix beaming patterns for 16th triplets. diff --git a/lily/rest.cc b/lily/rest.cc index b274aab872..d7351d648a 100644 --- a/lily/rest.cc +++ b/lily/rest.cc @@ -27,9 +27,9 @@ Rest::y_offset_callback (SCM smob) int line_count = Staff_symbol_referencer::line_count (me); Real ss = Staff_symbol_referencer::staff_space (me); + bool position_override = scm_is_number (me->get_property ("staff-position")); Real amount = robust_scm2double (me->get_property ("staff-position"), 0) * 0.5 * ss; - bool position_override = amount; if (line_count % 2) { -- 2.39.5