diff options
author | alberth <alberth@openttd.org> | 2009-07-12 09:41:44 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2009-07-12 09:41:44 +0000 |
commit | e3f429340153403c76a4a105e702abcac25837cb (patch) | |
tree | a734ddc40aade2fe94f08449fd5ec447811b7c38 /src | |
parent | b5b743bcba3c90e3e9756d5975cc2432ba7d6d4d (diff) | |
download | openttd-e3f429340153403c76a4a105e702abcac25837cb.tar.xz |
(svn r16796) -Fix [FS#3030]: Closebox 'X' is a string. (Rubidium)
Diffstat (limited to 'src')
-rw-r--r-- | src/widget.cpp | 2 |
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; |