From: David Kastrup Date: Thu, 13 Nov 2014 20:13:12 +0000 (+0100) Subject: Issue 216: ability to change staff line spacing inside a \layout{} block X-Git-Tag: release/2.19.16-1~2^2~54^2~31 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=cb6024decee0aafd84baafe34115fc1b2d179df6;p=lilypond.git 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. --- 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