From: Tom Hughes Date: Sun, 27 Apr 2008 12:27:46 +0000 (+0000) Subject: Make sure the recorded first point for a trace really is the first X-Git-Tag: live~7784 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/112ee9266cf30c11d9b4f9fb1711006c6143ae41 Make sure the recorded first point for a trace really is the first point and not the last. Closes #709. --- diff --git a/app/models/trace.rb b/app/models/trace.rb index ab99dc290..0e9e7bcc1 100644 --- a/app/models/trace.rb +++ b/app/models/trace.rb @@ -191,6 +191,7 @@ class Trace < ActiveRecord::Base if first f_lat = point['latitude'] f_lon = point['longitude'] + first = false end tp = Tracepoint.new