]> git.donarmstrong.com Git - lilypond.git/commitdiff
Fix #909.
authorPatrick McCarty <pnorcks@gmail.com>
Thu, 17 Dec 2009 08:09:14 +0000 (00:09 -0800)
committerPatrick McCarty <pnorcks@gmail.com>
Thu, 17 Dec 2009 08:31:30 +0000 (00:31 -0800)
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

index 179da16f890e097dac88b30e865185b48634f023..6b6813868b735e3fb1142997583b307fdfe5b952 100644 (file)
@@ -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<Item *> (i.grob ());
       bars_.push_back (it);