Fix problem where --detect-shared-borders could simplify polygons away

This commit is contained in:
Eric Fischer
2017-11-17 15:35:19 -08:00
parent ab86846d4b
commit ecbfad2576
4 changed files with 22 additions and 17 deletions
+1 -1
View File
@@ -862,7 +862,7 @@ bool find_common_edges(std::vector<partial> &partials, int z, int line_detail, d
}
}
if (!(prevent[P_SIMPLIFY] || (z == maxzoom && prevent[P_SIMPLIFY_LOW]) || (z < maxzoom && additional[A_GRID_LOW_ZOOMS]))) {
simplified_arcs[ai->second] = simplify_lines(dv, z, line_detail, !(prevent[P_CLIPPING] || prevent[P_DUPLICATION]), simplification, 3);
simplified_arcs[ai->second] = simplify_lines(dv, z, line_detail, !(prevent[P_CLIPPING] || prevent[P_DUPLICATION]), simplification, 4);
} else {
simplified_arcs[ai->second] = dv;
}