From 073808f400943b2530ae63955f3293bc526e2dbc Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Mon, 8 Jan 2007 11:03:00 +0100 Subject: [PATCH] Don't mix positions and staff spaces in bar-stem spacing. --- lily/staff-spacing.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lily/staff-spacing.cc b/lily/staff-spacing.cc index 65c565617c..1cbfee096a 100644 --- a/lily/staff-spacing.cc +++ b/lily/staff-spacing.cc @@ -42,6 +42,9 @@ Staff_spacing::next_note_correction (Grob *me, Item *col = dynamic_cast (g)->get_column (); Real left_stickout_correction = max (0., (- g->extent (col, X_AXIS)[LEFT])); + /* staff space -> positions */ + bar_size *= 2; + /* Duh. If this gets out of hand, we should invent something more generic. */ @@ -110,7 +113,7 @@ Staff_spacing::next_note_correction (Grob *me, Real correction = optical_corr + left_stickout_correction; if (correction) { - wish_count ++; + (*wish_count) ++; /* This minute adjustments don't make sense for widely spaced scores. -- 2.39.5