summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2009-07-12 09:41:44 +0000
committeralberth <alberth@openttd.org>2009-07-12 09:41:44 +0000
commite3f429340153403c76a4a105e702abcac25837cb (patch)
treea734ddc40aade2fe94f08449fd5ec447811b7c38
parentb5b743bcba3c90e3e9756d5975cc2432ba7d6d4d (diff)
downloadopenttd-e3f429340153403c76a4a105e702abcac25837cb.tar.xz
(svn r16796) -Fix [FS#3030]: Closebox 'X' is a string. (Rubidium)
-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;