Skip to content

Commit

Permalink
fix bug which led to some multipolygon relations not being recognized…
Browse files Browse the repository at this point in the history
… as areas (fix #624)
  • Loading branch information
westnordost committed Oct 8, 2017
1 parent d8c97f0 commit b6499a8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ private static void addTo(List<LatLon> way, List<LatLon> 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<LatLon> it = way.listIterator(way.size()-1);
Expand Down

1 comment on commit b6499a8

@dbdean
Copy link
Contributor

@dbdean dbdean commented on b6499a8 Oct 9, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes! This bug has been annoying me for a long time, but I hadn't got around to diagnosing it just yet, to work out why some buildings in multipolygons were asking me for addresses, but others weren't. Thanks!

Please sign in to comment.