(svn r18208) -Fix [FS#3321]: in some cases the size of the land information window wasn't properly calculated

This commit is contained in:
rubidium 2009-11-21 17:22:37 +00:00
parent a274cc6a60
commit e8141ba9d5
1 changed files with 1 additions and 1 deletions

View File

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