1
0
Fork 0

Fix: String parameter not set when determining width of smallmap contour labels.

pull/13145/head
Peter Nelson 2024-12-03 12:19:55 +00:00
parent 9e182871c7
commit b7341577d1
No known key found for this signature in database
GPG Key ID: 8EF8F0A467DF75ED
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);
}