]> mj.ucw.cz Git - leo.git/blobdiff - xml.c
Poskole: Adjust map scale
[leo.git] / xml.c
diff --git a/xml.c b/xml.c
index 69e739d06915121f8f34e95a73368e62dd219912..04c89481899cb887c156fe5858f5af4072a32ef2 100644 (file)
--- a/xml.c
+++ b/xml.c
@@ -151,6 +151,11 @@ static void h_error(struct xml_context *ctx)
 
 static void parse_element(struct xml_context *ctx, struct xml_node *e)
 {
+  // JOSM marks deleted, but not uploaded, objects
+  char *action = xml_attr_value(ctx, e, "action");
+  if (action && !strcmp(action, "delete"))
+    return;
+
   if (!strcmp(e->name, "node"))
     parse_node(ctx, e);
   else if (!strcmp(e->name, "way"))