summaryrefslogtreecommitdiff
path: root/src/object_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/object_gui.cpp')
-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);