Make sure not to shift away the extra detail from coordinates

This commit is contained in:
Erica Fischer
2022-08-19 14:00:41 -07:00
parent 2559fb4fd7
commit 64b23e6b8e
+9 -5
View File
@@ -3266,12 +3266,16 @@ int main(int argc, char **argv) {
} }
} }
geometry_scale = 32 - (full_detail + maxzoom); if (additional[A_EXTRA_DETAIL]) {
if (geometry_scale < 0) {
geometry_scale = 0; geometry_scale = 0;
if (!guess_maxzoom) { } else {
// This shouldn't be able to happen any more. Can it still? geometry_scale = 32 - (full_detail + maxzoom);
fprintf(stderr, "Full detail + maxzoom > 32, so you are asking for more detail than is available.\n"); if (geometry_scale < 0) {
geometry_scale = 0;
if (!guess_maxzoom) {
// This shouldn't be able to happen any more. Can it still?
fprintf(stderr, "Full detail + maxzoom > 32, so you are asking for more detail than is available.\n");
}
} }
} }