]> git.donarmstrong.com Git - lilypond.git/commitdiff
A better fix for #1156.
authorPatrick McCarty <pnorcks@gmail.com>
Sun, 27 Jun 2010 21:09:09 +0000 (14:09 -0700)
committerPatrick McCarty <pnorcks@gmail.com>
Sun, 27 Jun 2010 21:12:31 +0000 (14:12 -0700)
My comments about a generic Spanner from the previous commit were not
correct; this was just a suicided Slur grob.  Checking if the Slur is
"live" or not is more appropriate.

Thanks to Neil for the helpful hints.

lily/slur-scoring.cc

index a1f761acf269813964ce4806b6194ef5ca8899e5..0e8c60cbcb61fbaa73e8b6b5ac85005761547782 100644 (file)
@@ -87,7 +87,7 @@ Slur_score_state::slur_direction () const
 {
   Grob *left_neighbor = slur_->broken_neighbor (LEFT);
 
-  if (left_neighbor && Slur::has_interface (left_neighbor))
+  if (left_neighbor && left_neighbor->is_live ())
     return get_grob_direction (left_neighbor);
 
   Direction dir = get_grob_direction (slur_);