]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/line-interface.cc
Fix some bugs in the dynamic engraver and PostScript backend
[lilypond.git] / lily / line-interface.cc
index a938017616f78fe4c65a0059c3d0e589bfef0482..6401b3896ae942ced9333c9b101ab43582275ef4 100644 (file)
@@ -3,7 +3,7 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 2004--2005 Han-Wen Nienhuys <hanwen@xs4all.nl>
+  (c) 2004--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
 */
 
 #include "line-interface.hh"
@@ -18,13 +18,13 @@ Line_interface::make_arrow (Offset begin, Offset end,
                            Real length, Real width)
 {
   Real angle = (end - begin).arg ();
-  Array<Offset> points;
+  vector<Offset> points;
 
-  points.push (Offset (0, 0));
-  points.push (Offset (-length, width));
-  points.push (Offset (-length, -width));
+  points.push_back (Offset (0, 0));
+  points.push_back (Offset (-length, width));
+  points.push_back (Offset (-length, -width));
 
-  for (int i = 0; i < points.size (); i++)
+  for (vsize i = 0; i < points.size (); i++)
     points[i] = points[i] * complex_exp (Offset (0, angle)) + end;
 
   return Lookup::round_filled_polygon (points, thick);