if mid < 0
mid = renumberednodes[mid] if m[0] == 'node'
mid = renumberedways[mid] if m[0] == 'way'
- if mid
- typedmembers << [m[0], mid, m[2]]
- end
+ end
+ if mid
+ typedmembers << [m[0], mid, m[2]]
end
end
way.unshared_node_ids.each do |n|
deleteitemrelations(n, 'node')
end
+ deleteitemrelations(way_id, 'way')
way.delete_with_relations_and_nodes_and_history(user)