From b7d7111dd53b2eab62b97e43fe40063d5ca58980 Mon Sep 17 00:00:00 2001 From: yexo Date: Thu, 12 Jan 2012 20:03:35 +0000 Subject: [PATCH] (svn r23793) -Fix (r23791): height computation was missing a few pixels so the last line was still missing --- src/newgrf_gui.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp index 79a845ad0c..debda89659 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;