]> git.openstreetmap.org Git - rails.git/commitdiff
Make sure the recorded first point for a trace really is the first
authorTom Hughes <tom@compton.nu>
Sun, 27 Apr 2008 12:27:46 +0000 (12:27 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 27 Apr 2008 12:27:46 +0000 (12:27 +0000)
point and not the last. Closes #709.

app/models/trace.rb

index ab99dc2900a2d1962f0316b542616b3dea2afc77..0e9e7bcc1598df1ffd54f447f18afa75d6fbae1a 100644 (file)
@@ -191,6 +191,7 @@ class Trace < ActiveRecord::Base
       if first
         f_lat = point['latitude']
         f_lon = point['longitude']
+        first = false
       end
 
       tp = Tracepoint.new