summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/widget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widget.cpp b/src/widget.cpp
index fe8f31f3d..4f27a331c 100644
--- a/src/widget.cpp
+++ b/src/widget.cpp
@@ -1943,7 +1943,7 @@ int NWidgetLeaf::SetupSmallestSize(Window *w)
break;
case WWT_CLOSEBOX:
- d2 = maxdim(d2, GetSpriteSize(this->widget_data));
+ d2 = maxdim(d2, GetStringBoundingBox(this->widget_data));
d2.height += WD_CLOSEBOX_TOP;
break;