diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/newgrf_gui.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp index 79a845ad0..debda8965 100644 --- a/src/newgrf_gui.cpp +++ b/src/newgrf_gui.cpp @@ -218,7 +218,8 @@ struct NewGRFParametersWindow : public Window { if (par_info == NULL) continue; const char *desc = GetGRFStringFromGRFText(par_info->desc); if (desc == NULL) continue; - const Dimension d = GetStringMultiLineBoundingBox(desc, suggestion); + Dimension d = GetStringMultiLineBoundingBox(desc, suggestion); + d.height += WD_TEXTPANEL_TOP + WD_TEXTPANEL_BOTTOM; suggestion = maxdim(d, suggestion); } size->height = suggestion.height; |