From 64b23e6b8e08b1df2874220288361dec8974f6f9 Mon Sep 17 00:00:00 2001 From: Erica Fischer Date: Fri, 19 Aug 2022 14:00:41 -0700 Subject: [PATCH] Make sure not to shift away the extra detail from coordinates --- main.cpp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/main.cpp b/main.cpp index d54a8033..5700877a 100644 --- a/main.cpp +++ b/main.cpp @@ -3266,12 +3266,16 @@ int main(int argc, char **argv) { } } - geometry_scale = 32 - (full_detail + maxzoom); - if (geometry_scale < 0) { + if (additional[A_EXTRA_DETAIL]) { 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"); + } else { + geometry_scale = 32 - (full_detail + maxzoom); + 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"); + } } }