From 84173e24a5b47479cc1418d260badc243370b4a6 Mon Sep 17 00:00:00 2001 From: Eric Fischer Date: Mon, 2 Nov 2015 13:52:52 -0800 Subject: [PATCH] Produce JSON with proper nesting even if polygon rings go the wrong way --- decode.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/decode.cc b/decode.cc index f759508..693abc9 100644 --- a/decode.cc +++ b/decode.cc @@ -274,7 +274,7 @@ void handle(std::string message, int z, unsigned x, unsigned y, int describe) { } areas[i] = area; - if (areas[i] <= 0) { + if (areas[i] <= 0 || i == 0) { outer++; }