]> git.openstreetmap.org Git - rails.git/commitdiff
Include first frame twice in trace animations
authorTom Hughes <tom@compton.nu>
Tue, 11 Jun 2019 19:36:53 +0000 (20:36 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 11 Jun 2019 19:36:53 +0000 (20:36 +0100)
lib/gpx.rb

index 068b8481563dad0ae568a00d294eefb88cc71fda..cfc82eedb2445fd0d081872d3d89eb1b7629853a 100644 (file)
@@ -114,6 +114,7 @@ module GPX
       end
 
       image = GD2::AnimatedGif.new
+      image.add(frames.first)
       frames.each do |frame|
         image.add(frame, :delay => delay)
       end