(svn r16796) -Fix [FS#3030]: Closebox 'X' is a string. (Rubidium)

This commit is contained in:
alberth 2009-07-12 09:41:44 +00:00
parent b5b743bcba
commit e3f4293401

View File

@ -1943,7 +1943,7 @@ int NWidgetLeaf::SetupSmallestSize(Window *w)
break; break;
case WWT_CLOSEBOX: case WWT_CLOSEBOX:
d2 = maxdim(d2, GetSpriteSize(this->widget_data)); d2 = maxdim(d2, GetStringBoundingBox(this->widget_data));
d2.height += WD_CLOSEBOX_TOP; d2.height += WD_CLOSEBOX_TOP;
break; break;