Fix crash when encoding boolean properties.

This commit is contained in:
Eric Fischer
2015-04-10 13:03:11 -07:00
parent ed2f968b4e
commit d64328ac35
3 changed files with 5 additions and 1 deletions
+2
View File
@@ -261,6 +261,8 @@ mapnik::vector::tile create_tile(char **layernames, int line_detail, std::vector
if (pv->type == VT_NUMBER) {
tv->set_double_value(atof(pv->s));
} else if (pv->type == VT_BOOLEAN) {
tv->set_bool_value(pv->s[0] == 't');
} else {
tv->set_string_value(pv->s);
}