From b7341577d10a49a4c6438faf5ee8e76f661f9b49 Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Tue, 3 Dec 2024 12:19:55 +0000 Subject: [PATCH] Fix: String parameter not set when determining width of smallmap contour labels. --- 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); }