]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/note-collision.cc
* ly/engraver-init.ly: Make FiguredBass accepted in GrandStaff and
[lilypond.git] / lily / note-collision.cc
index 24a9a532cfdd28492e097cc4e1f5399ea087f539..e84e5263c63a57160ce55f577232db2e40a40e83 100644 (file)
@@ -48,7 +48,8 @@ check_meshing_chords (Grob *me,
   if (ups[0] > dps.back () + 1)
     return;
 
-  // FIXME: what's this?
+  /* Merge heads if the notes lie the same line, or if the "stem-up-note" is
+     above the "stem-down-note". */
   bool merge_possible = (ups[0] >= dps[0]) && (ups.back () >= dps.back ());
 
   /* Do not merge notes typeset in different style. */
@@ -304,7 +305,9 @@ Note_collision_interface::calc_positioning_done (SCM smob)
       if (cg[d].size ())
        {
          Grob *h = cg[d][0];
-         wid = Note_column::first_head (h)->extent (h, X_AXIS).length ();
+         Grob *fh = Note_column::first_head (h);
+         if (fh)
+           wid = fh->extent (h, X_AXIS).length ();
        }
     }
   while (flip (&d) != UP);