From 2ff18a4f05f7b1f103e67b6b434a8322e4902943 Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Wed, 4 Dec 2024 12:18:17 +0000 Subject: [PATCH] Fix: String parameter not set when determining width of smallmap contour labels. (#13145) --- src/smallmap_gui.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/smallmap_gui.cpp b/src/smallmap_gui.cpp index 9d57eac992..8d7c4fa43e 100644 --- a/src/smallmap_gui.cpp +++ b/src/smallmap_gui.cpp @@ -1559,6 +1559,7 @@ public: } height++; str = tbl->legend; + if (i == SMT_CONTOUR) SetDParam(0, tbl->height * TILE_HEIGHT_STEP); } min_width = std::max(GetStringBoundingBox(str).width, min_width); }