]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/span-bar-engraver.cc
Fix some bugs in the dynamic engraver and PostScript backend
[lilypond.git] / lily / span-bar-engraver.cc
index 7ec59d3895f4d50e4c3d607bf433e8ba8d452b68..503bdf265b5cbcae112ba6c3182d701eca7b36e3 100644 (file)
@@ -22,7 +22,7 @@ dependencies to the spanbars.
 class Span_bar_engraver : public Engraver
 {
   Item *spanbar_;
-  Link_array<Item> bars_;
+  vector<Item*> bars_;
 
 public:
   TRANSLATOR_DECLARATIONS (Span_bar_engraver);
@@ -43,7 +43,7 @@ Span_bar_engraver::acknowledge_bar_line (Grob_info i)
   if (depth && Bar_line::has_interface (i.grob ()))
     {
       Item *it = dynamic_cast<Item *> (i.grob ());
-      bars_.push (it);
+      bars_.push_back (it);
 
       if (bars_.size () >= 2 && !spanbar_)
        {
@@ -59,7 +59,7 @@ Span_bar_engraver::stop_translation_timestep ()
 {
   if (spanbar_)
     {
-      for (int i = 0; i < bars_.size (); i++)
+      for (vsize i = 0; i < bars_.size (); i++)
        Span_bar::add_bar (spanbar_, bars_[i]);
 
       SCM vissym = ly_symbol2scm ("break-visibility");
@@ -69,7 +69,7 @@ Span_bar_engraver::stop_translation_timestep ()
 
       spanbar_ = 0;
     }
-  bars_.set_size (0);
+  bars_.resize (0);
 }
 
 #include "translator.icc"