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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user