# HG changeset patch # User alberth # Date 2009-07-12 09:41:44 # Node ID 6e612b7e213489895d634f0025d3e74d29118373 # Parent c8293eb813742d2eff0389b48eb9d6ff399c3f40 (svn r16796) -Fix [FS#3030]: Closebox 'X' is a string. (Rubidium) diff --git a/src/widget.cpp b/src/widget.cpp --- a/src/widget.cpp +++ b/src/widget.cpp @@ -1943,7 +1943,7 @@ int NWidgetLeaf::SetupSmallestSize(Windo break; case WWT_CLOSEBOX: - d2 = maxdim(d2, GetSpriteSize(this->widget_data)); + d2 = maxdim(d2, GetStringBoundingBox(this->widget_data)); d2.height += WD_CLOSEBOX_TOP; break;