From d000ba690e920b568ec8272d12de46f92aa20f68 Mon Sep 17 00:00:00 2001 From: Joe Neeman Date: Thu, 3 Mar 2011 12:29:42 +1100 Subject: [PATCH] Fix 1545. Use the width of the BreakAlignment, not the width of the PaperColumn, for determining the start-point of a volta bracket. --- lily/volta-bracket.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lily/volta-bracket.cc b/lily/volta-bracket.cc index c135e52568..6877a1a2eb 100644 --- a/lily/volta-bracket.cc +++ b/lily/volta-bracket.cc @@ -57,14 +57,17 @@ Volta_bracket_interface::print (SCM smob) Item *bound = dynamic_cast (me)->get_bound (LEFT); /* - not a start, but really broken in two + If the volta bracket appears after a line-break, make + it start after the prefatory matter. */ Real left = 0.; if (bound->break_status_dir () == RIGHT) { Paper_column *pc = bound->get_column (); - left = pc->extent (pc, X_AXIS)[RIGHT] - - bound->relative_coordinate (pc, X_AXIS); + left = pc->break_align_width (pc, ly_symbol2scm ("break-alignment"))[RIGHT] + // For some reason, break_align_width is relative to + // the x-parent of the column. + - bound->relative_coordinate (pc->get_parent (X_AXIS), X_AXIS); } else { -- 2.39.2