1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-19 10:22:39 +01:00

Fix: String parameter not set when determining width of smallmap contour labels. (#13145)

This commit is contained in:
Peter Nelson
2024-12-04 12:18:17 +00:00
committed by GitHub
parent efcafe49f7
commit 2ff18a4f05

View File

@@ -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);
}