]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/way_controller.rb
Make sure the trace tab always links to the global trace list
[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