From e8141ba9d5999b5be69c9936e0b3bbf5ee59f4c9 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 21 Nov 2009 17:22:37 +0000 Subject: (svn r18208) -Fix [FS#3321]: in some cases the size of the land information window wasn't properly calculated --- src/misc_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp index 048f8fb8c..18c39d95e 100644 --- a/src/misc_gui.cpp +++ b/src/misc_gui.cpp @@ -133,7 +133,7 @@ public: uint width = GetStringBoundingBox(this->landinfo_data[LAND_INFO_MULTICENTER_LINE]).width + WD_FRAMETEXT_LEFT + WD_FRAMETEXT_RIGHT; size->width = max(size->width, min(300u, width)); SetDParamStr(0, this->landinfo_data[LAND_INFO_MULTICENTER_LINE]); - size->height += GetStringHeight(STR_JUST_RAW_STRING, size->width - WD_FRAMERECT_LEFT - WD_FRAMERECT_RIGHT); + size->height += GetStringHeight(STR_JUST_RAW_STRING, size->width - WD_FRAMETEXT_LEFT - WD_FRAMETEXT_RIGHT); } } -- cgit v1.2.3-70-g09d2