summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2012-07-07 11:59:43 +0000
committerfrosch <frosch@openttd.org>2012-07-07 11:59:43 +0000
commit3d3ab26ee6a2748cab201b21280042420732eb08 (patch)
tree9a47ae8f924c499abf910de0d02ff14345ee8ec4 /src
parent4843bad1acdf2b45ee4e532e0035c6c8e46ce39c (diff)
downloadopenttd-3d3ab26ee6a2748cab201b21280042420732eb08.tar.xz
(svn r24379) -Fix [FS#5218-ish]: Do not resize the object GUI when selecting objects. Rather clip the object name.
Diffstat (limited to 'src')
-rw-r--r--src/object_gui.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/object_gui.cpp b/src/object_gui.cpp
index 646cc230f..9217bb62f 100644
--- a/src/object_gui.cpp
+++ b/src/object_gui.cpp
@@ -96,6 +96,12 @@ public:
break;
}
+ case WID_BO_OBJECT_NAME:
+ case WID_BO_OBJECT_SIZE:
+ /* We do not want the window to resize when selecting objects; better clip texts */
+ size->width = 0;
+ break;
+
case WID_BO_OBJECT_MATRIX: {
/* Get the right amount of buttons based on the current spec. */
const ObjectSpec *spec = ObjectClass::Get(_selected_object_class)->GetSpec(_selected_object_index);