X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fhairpin.cc;fp=lily%2Fhairpin.cc;h=40e165dd6d0ffe35c9cfff0051e19133129037ed;hb=0ac07f31e0f95fc18e5916ce756b9c746af7cc58;hp=cacfb0f51c148968f015fec995ef17d742ba24b3;hpb=2f1263e2ccdddcac2eb9f7d8ce2ed92867d3d160;p=lilypond.git diff --git a/lily/hairpin.cc b/lily/hairpin.cc index cacfb0f51c..40e165dd6d 100644 --- a/lily/hairpin.cc +++ b/lily/hairpin.cc @@ -127,14 +127,16 @@ Hairpin::print (SCM smob) broken[d] = bounds[d]->break_status_dir () != CENTER; } - broken[RIGHT] = broken[RIGHT] && me->broken_neighbor (RIGHT); - broken[RIGHT] = broken[RIGHT] && me->broken_neighbor (RIGHT)->is_live (); - if (broken[RIGHT]) { Spanner *next = me->broken_neighbor (RIGHT); - Stencil *s = next->get_stencil (); - if (!s || s->is_empty ()) + // Hairpin-parts suicide in after-line-breaking if they need not be drawn + if (next) + { + (void) next->get_property ("after-line-breaking"); + broken[RIGHT] = next->is_live (); + } + else broken[RIGHT] = false; }