From: Han-Wen Nienhuys Date: Fri, 18 Mar 2011 02:17:14 +0000 (-0300) Subject: Fix inverted sign on relative offset for beam-collisions. X-Git-Tag: release/2.13.55-1~10 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=2533d976e5218f47bef6ae81fb51d6722f6dd895;p=lilypond.git Fix inverted sign on relative offset for beam-collisions. This fixes #1565. --- diff --git a/input/regression/beam-collision-cross-staff.ly b/input/regression/beam-collision-cross-staff.ly new file mode 100644 index 0000000000..d546aafa18 --- /dev/null +++ b/input/regression/beam-collision-cross-staff.ly @@ -0,0 +1,12 @@ +\header { + texidoc = "cross staff beams work with collisions." +} + +\version "2.13.55" + +<< + \new Staff = "PianoRH" s4. + \new Staff = "PianoLH" { + d''8 [b''! \change Staff = "PianoRH" d'' ] + } +>> diff --git a/lily/beam.cc b/lily/beam.cc index e3135dadfa..6fbd71d7d6 100644 --- a/lily/beam.cc +++ b/lily/beam.cc @@ -1276,7 +1276,7 @@ Beam::shift_region_to_valid (SCM grob, SCM posns) left_y -= dy; // Translate back to beam as ref point. - left_y -= -me->relative_coordinate (common[Y_AXIS], Y_AXIS); + left_y -= me->relative_coordinate (common[Y_AXIS], Y_AXIS); Interval allowed; allowed.set_full ();