5 character patch to only output duplicated nodes once in a way/full call
Unit tests not run - problems on this system Fixes #2327
This commit is contained in:
parent
18f9ebaf71
commit
ec26e06706
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ class WayController < ApplicationController
|
||||||
user_display_name_cache = {}
|
user_display_name_cache = {}
|
||||||
|
|
||||||
doc = OSM::API.new.get_xml_doc
|
doc = OSM::API.new.get_xml_doc
|
||||||
way.nodes.each do |node|
|
way.nodes.uniq.each do |node|
|
||||||
if node.visible
|
if node.visible
|
||||||
doc.root << node.to_xml_node(changeset_cache, user_display_name_cache)
|
doc.root << node.to_xml_node(changeset_cache, user_display_name_cache)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue