Produce JSON with proper nesting even if polygon rings go the wrong way

This commit is contained in:
Eric Fischer 2015-11-02 13:52:52 -08:00
parent 36f4f77640
commit 84173e24a5

View File

@ -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++;
}