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 ab99dc2..0e9e7bc 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