Don't introduce bogus geometries in clipped-away features.

This commit is contained in:
Eric Fischer 2014-12-03 16:30:35 -08:00
parent 08ff40e42f
commit b7b476b36c

View File

@ -569,6 +569,10 @@ drawvec simplify_lines(drawvec &geom, int z, int detail) {
drawvec reorder_lines(drawvec &geom) {
// Only reorder simple linestrings with a single moveto
if (geom.size() == 0) {
return geom;
}
unsigned i;
for (i = 0; i < geom.size(); i++) {
if (geom[i].op == VT_MOVETO) {