From fe805836cc89efd9d053a15e2c1a78eef3f57582 Mon Sep 17 00:00:00 2001 From: mmd-osm Date: Tue, 2 Apr 2019 18:28:49 +0200 Subject: [PATCH] Fix incorrect start index --- lib/gpx.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gpx.rb b/lib/gpx.rb index 57b623362..7c72c726f 100644 --- a/lib/gpx.rb +++ b/lib/gpx.rb @@ -102,7 +102,7 @@ module GPX res = GD2::AnimatedGif::gif_anim_begin(frames[0]) res << GD2::AnimatedGif::gif_anim_add(frames[0], nil, delay) - (0..nframes - 1).each do |n| + (1..nframes - 1).each do |n| res << GD2::AnimatedGif::gif_anim_add(frames[n], frames[n-1], delay) end res << GD2::AnimatedGif::gif_anim_end() -- 2.39.5