From: Han-Wen Nienhuys Date: Mon, 16 Apr 2007 04:27:50 +0000 (-0400) Subject: Fix #341 X-Git-Tag: release/2.11.23-1~22^2~19 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=3ac8ef8f394f32f1523c6ac24f27e2b403bba16f;p=lilypond.git Fix #341 Make sure that span arpeggios aren't attached to System in Y_AXIS. --- diff --git a/input/regression/arpeggio-span-one-staff.ly b/input/regression/arpeggio-span-one-staff.ly new file mode 100644 index 0000000000..7f9d3b3e64 --- /dev/null +++ b/input/regression/arpeggio-span-one-staff.ly @@ -0,0 +1,21 @@ +\header { + texidoc = "Span arpeggios within one staff also work" + } + +\version "2.11.21" +\layout { ragged-right = ##t } + +\new PianoStaff << + \set PianoStaff.connectArpeggios = ##t + \new Staff \relative c'' { + << + { + c2\arpeggio + } + \\ + { + g2\arpeggio a + } + >> + } +>> diff --git a/lily/span-arpeggio-engraver.cc b/lily/span-arpeggio-engraver.cc index a465b7da11..97c2f6b870 100644 --- a/lily/span-arpeggio-engraver.cc +++ b/lily/span-arpeggio-engraver.cc @@ -89,6 +89,8 @@ Span_arpeggio_engraver::stop_translation_timestep () arpeggios_[j]->set_property ("transparent", SCM_BOOL_T); } + + span_arpeggio_->set_parent (arpeggios_[0]->get_parent (Y_AXIS), Y_AXIS); span_arpeggio_ = 0; } arpeggios_.clear ();