]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/way_controller.rb
Correct merge issues in the last merge from master
[rails.git] / app / controllers / way_controller.rb
index 1f301e9fb168d805569d3d873ebb0c9a26d30a13..f2cda21bca0da9e77938daca4a7e6f33d349c167 100644 (file)
@@ -67,7 +67,7 @@ class WayController < ApplicationController
       user_display_name_cache = {}
 
       doc = OSM::API.new.get_xml_doc
       user_display_name_cache = {}
 
       doc = OSM::API.new.get_xml_doc
-      way.nodes.each do |node|
+      way.nodes.uniq.each do |node|
         if node.visible
           doc.root << node.to_xml_node(changeset_cache, user_display_name_cache)
         end
         if node.visible
           doc.root << node.to_xml_node(changeset_cache, user_display_name_cache)
         end