1
0
Fork 0

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

pull/13149/head
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
1 changed files with 1 additions and 0 deletions

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