(svn r24379) -Fix [FS#5218-ish]: Do not resize the object GUI when selecting objects. Rather clip the object name.

This commit is contained in:
frosch 2012-07-07 11:59:43 +00:00
parent 4843bad1ac
commit 3d3ab26ee6
1 changed files with 6 additions and 0 deletions

View File

@ -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);