]> git.donarmstrong.com Git - lilypond.git/commitdiff
Fix #341
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Mon, 16 Apr 2007 04:27:50 +0000 (00:27 -0400)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Mon, 16 Apr 2007 04:27:50 +0000 (00:27 -0400)
Make sure that span arpeggios aren't attached to System in Y_AXIS.

input/regression/arpeggio-span-one-staff.ly [new file with mode: 0644]
lily/span-arpeggio-engraver.cc

diff --git a/input/regression/arpeggio-span-one-staff.ly b/input/regression/arpeggio-span-one-staff.ly
new file mode 100644 (file)
index 0000000..7f9d3b3
--- /dev/null
@@ -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
+     }
+   >>
+ }
+>>
index a465b7da1141551eb63a811baed536d274a03cfc..97c2f6b87079289eb1390f74c5b0cf2d95dffa4c 100644 (file)
@@ -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 ();