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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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