projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ab734e
)
Spell way_id correctly
author
Tom Hughes
<tom@compton.nu>
Thu, 17 Nov 2011 11:33:48 +0000
(11:33 +0000)
committer
Tom Hughes
<tom@compton.nu>
Thu, 17 Nov 2011 11:33:48 +0000
(11:33 +0000)
app/models/old_way.rb
patch
|
blob
|
history
diff --git
a/app/models/old_way.rb
b/app/models/old_way.rb
index c2af4f21ce45e2944146fecc370ded8b4d56a2e4..00642cdb3568eeb834aa2580652484e5e7a188d9 100644
(file)
--- a/
app/models/old_way.rb
+++ b/
app/models/old_way.rb
@@
-137,7
+137,7
@@
class OldWay < ActiveRecord::Base
id = n; reuse = curnode.visible
if oldnode.lat != curnode.lat or oldnode.lon != curnode.lon or oldnode.tags != curnode.tags then
# node has changed: if it's in other ways, give it a new id
- if curnode.ways-[self.
node
_id] then id=-1; reuse=false end
+ if curnode.ways-[self.
way
_id] then id=-1; reuse=false end
end
points << [oldnode.lon, oldnode.lat, id, curnode.version, oldnode.tags_as_hash, reuse]
end