]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/span-bar-engraver.cc
Add cautionary-style to interface.
[lilypond.git] / lily / span-bar-engraver.cc
index e3b4778e4ef485422cefb9480e5add9279370558..c2c3fd919c78ddb5df8d193712779be0171d1aa3 100644 (file)
@@ -8,7 +8,7 @@
 
 
 #include "lily-guile.hh"
-#include "bar.hh"
+#include "bar-line.hh"
 #include "item.hh"
 #include "span-bar.hh"
 #include "engraver.hh"
@@ -49,7 +49,7 @@ Span_bar_engraver::acknowledge_grob (Grob_info i)
 {
   int depth = i.origin_trans_l_arr (this).size ();
   if (depth > 1
-      && Bar::has_interface (i.grob_l_))
+      && Bar_line::has_interface (i.grob_l_))
     {
       Item * it = dynamic_cast<Item*> (i.grob_l_);
       bar_l_arr_.push (it);
@@ -57,10 +57,10 @@ Span_bar_engraver::acknowledge_grob (Grob_info i)
       if (bar_l_arr_.size () >= 2 && !spanbar_p_) 
        {
          spanbar_p_ = new Item (get_property ("SpanBar"));
-         Span_bar::set_interface (spanbar_p_);
+
          spanbar_p_->set_parent (bar_l_arr_[0], X_AXIS);
 
-         announce_grob (spanbar_p_,0);
+         announce_grob (spanbar_p_, SCM_EOL);
        }
     }
 }