From 5d673418525d929fe6d520124d84932edf9e97e0 Mon Sep 17 00:00:00 2001 From: Joe Neeman Date: Fri, 27 May 2011 09:06:27 +0300 Subject: [PATCH] Make the system refpoint the refpoint of its first spaceable staff. Apparently this used to be the default, but the new spacing code changed the system refpoint to be the top of the tallest grob in the system. If the system refpoint is the refpoint of its first spaceable staff, it is easier to do manual page layouts. --- lily/page-layout-problem.cc | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/lily/page-layout-problem.cc b/lily/page-layout-problem.cc index fa4bd9c..507b7c4 100644 --- a/lily/page-layout-problem.cc +++ b/lily/page-layout-problem.cc @@ -488,11 +488,8 @@ Page_layout_problem::find_system_offsets () // that it is consistent with the usual up/down sign conventions in // Lilypond. Then this would be less confusing. - // These two positions are relative to the page (with positive numbers being - // down). - Real first_staff_position = solution_[spring_idx]; - Real first_staff_min_translation = elements_[i].min_offsets.size () ? elements_[i].min_offsets[0] : 0; - Real system_position = first_staff_position + first_staff_min_translation; + // These is relative to the page (ie. positive numbers are down). + Real system_position = solution_[spring_idx]; // Position the staves within this system. Real translation = 0; -- 1.7.5.2