]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/dynamic-engraver.cc
Issue 2245: always align dynamics and lyrics on "main" notehead
[lilypond.git] / lily / dynamic-engraver.cc
index a91d742ee80306de3221656808baea2d52ff3ed1..fdf682f7733cd993bd3d0331b67cb859276cc817 100644 (file)
@@ -261,11 +261,11 @@ Dynamic_engraver::acknowledge_note_column (Grob_info info)
     {
       extract_grob_set (info.grob (), "note-heads", heads);
       /*
-        Spacing constraints may require dynamics to be aligned on rests,
+        Spacing constraints may require dynamics to be attached to rests,
         so check for a rest if this note column has no note heads.
       */
       Grob *x_parent = (heads.size ()
-                        ? heads[0]
+                        ? info.grob ()
                         : unsmob_grob (info.grob ()->get_object ("rest")));
       if (x_parent)
         script_->set_parent (x_parent, X_AXIS);