projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33eb0d7
)
Make sure the recorded first point for a trace really is the first
author
Tom Hughes
<tom@compton.nu>
Sun, 27 Apr 2008 12:27:46 +0000
(12:27 +0000)
committer
Tom 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
patch
|
blob
|
history
diff --git
a/app/models/trace.rb
b/app/models/trace.rb
index ab99dc2900a2d1962f0316b542616b3dea2afc77..0e9e7bcc1598df1ffd54f447f18afa75d6fbae1a 100644
(file)
--- 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