X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/fe805836cc89efd9d053a15e2c1a78eef3f57582..1316ed8c1110ff25f9e09c57dd6a85dc4b97fb65:/lib/gpx.rb?ds=sidebyside diff --git a/lib/gpx.rb b/lib/gpx.rb index 7c72c726f..0299f63b5 100644 --- a/lib/gpx.rb +++ b/lib/gpx.rb @@ -57,7 +57,7 @@ module GPX proj = OSM::Mercator.new(min_lat, min_lon, max_lat, max_lon, width, height) - frames = Array.new(nframes, GD2::Image::IndexedColor.new(width, height)) + frames = [] (0..nframes - 1).each do |n| frames[n] = GD2::Image::IndexedColor.new(width, height)