From b6499a81881ec5a53eac71463a82fad8a6ff4c97 Mon Sep 17 00:00:00 2001 From: Tobias Zwick Date: Sun, 8 Oct 2017 14:17:35 +0200 Subject: [PATCH] fix bug which led to some multipolygon relations not being recognized as areas (fix #624) --- .../data/osm/download/ElementGeometryCreator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/de/westnordost/streetcomplete/data/osm/download/ElementGeometryCreator.java b/app/src/main/java/de/westnordost/streetcomplete/data/osm/download/ElementGeometryCreator.java index 2110ce74c4..ae9cc1fae0 100644 --- a/app/src/main/java/de/westnordost/streetcomplete/data/osm/download/ElementGeometryCreator.java +++ b/app/src/main/java/de/westnordost/streetcomplete/data/osm/download/ElementGeometryCreator.java @@ -237,7 +237,7 @@ private static void addTo(List way, List polyWay) { LatLon addLast = way.get(way.size() - 1); LatLon toLast = polyWay.get(polyWay.size() - 1); - if(addLast == toLast) + if(addLast.equals(toLast)) { // -1 to not add the last vertex because it has already been added ListIterator it = way.listIterator(way.size()-1);