further refinement to revert

This commit is contained in:
Richard Fairhurst 2007-11-30 20:52:38 +00:00
parent 52276be4a9
commit 5fd514fee3

View file

@ -707,7 +707,7 @@ def readwayquery_old(id,version,historic)
unless row.nil? then unless row.nil? then
nx=row['longitude'].to_f nx=row['longitude'].to_f
ny=row['latitude'].to_f ny=row['latitude'].to_f
if (row['currentway']) then rows[i]['id']=-1 end if (row['currentway'] && (nx!=rows[i]['longitude'].to_f or ny!=rows[i]['latitude'].to_f or row['tags']!=rows[i]['tags'])) then rows[i]['id']=-1 end
rows[i]['longitude']=nx rows[i]['longitude']=nx
rows[i]['latitude' ]=ny rows[i]['latitude' ]=ny
rows[i]['tags' ]=row['tags'] rows[i]['tags' ]=row['tags']