From fc4d3f999aa4044bab4d26be3922a5441a6a6891 Mon Sep 17 00:00:00 2001 From: Patrick McCarty Date: Thu, 17 Dec 2009 00:09:14 -0800 Subject: [PATCH] Fix #909. In the acknowledger for the bar-line-interface, a check to see if the acknowledged grob contains the bar-line-interface is superfluous. Instead, filter out SpanBar grobs (with a span-bar-interface check) in the acknowledger so that SpanBars are not added to bars_ if more than one Span_bar_engraver exists in a context. --- lily/span-bar-engraver.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lily/span-bar-engraver.cc b/lily/span-bar-engraver.cc index 179da16f89..6b6813868b 100644 --- a/lily/span-bar-engraver.cc +++ b/lily/span-bar-engraver.cc @@ -51,7 +51,7 @@ void Span_bar_engraver::acknowledge_bar_line (Grob_info i) { int depth = i.origin_contexts (this).size (); - if (depth && Bar_line::has_interface (i.grob ())) + if (depth && !Span_bar::has_interface (i.grob ())) { Item *it = dynamic_cast (i.grob ()); bars_.push_back (it); -- 2.39.2