From cb6024decee0aafd84baafe34115fc1b2d179df6 Mon Sep 17 00:00:00 2001 From: David Kastrup Date: Thu, 13 Nov 2014 21:13:12 +0100 Subject: [PATCH] Issue 216: ability to change staff line spacing inside a \layout{} block This uses the staff-space setting from the \layout block (if set) for determining staff spacing. It apparently does not help with horizontal spacing, though. --- lily/staff-symbol.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lily/staff-symbol.cc b/lily/staff-symbol.cc index e2c199633a..4181444188 100644 --- a/lily/staff-symbol.cc +++ b/lily/staff-symbol.cc @@ -263,7 +263,9 @@ Staff_symbol::line_count (Grob *me) Real Staff_symbol::staff_space (Grob *me) { - return robust_scm2double (me->get_property ("staff-space"), 1.0); + Real ss = me->layout ()->get_dimension (ly_symbol2scm ("staff-space")); + + return robust_scm2double (me->get_property ("staff-space"), 1.0) * ss; } Real -- 2.39.5