summaryrefslogtreecommitdiff
path: root/src/group_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2010-07-17 14:58:35 +0000
committerfrosch <frosch@openttd.org>2010-07-17 14:58:35 +0000
commitf06560ad45f5f81e6d5f165dae4c3553989b06f5 (patch)
tree3919922b19fe8c4831bdbccc23e0b7b68e213ea8 /src/group_gui.cpp
parent240e8df0523be8a10eeaf306367b9dff4700ae26 (diff)
downloadopenttd-f06560ad45f5f81e6d5f165dae4c3553989b06f5.tar.xz
(svn r20172) -Codechange: Use BaseVehicleListWindow::BuildActionDropdownList() also for the normal vehicle list.
Diffstat (limited to 'src/group_gui.cpp')
-rw-r--r--src/group_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/group_gui.cpp b/src/group_gui.cpp
index 29728cadb..c3ddc5812 100644
--- a/src/group_gui.cpp
+++ b/src/group_gui.cpp
@@ -236,7 +236,7 @@ public:
break;
case GRP_WIDGET_MANAGE_VEHICLES_DROPDOWN: {
- Dimension d = this->GetActionDropdownSize(true);
+ Dimension d = this->GetActionDropdownSize(true, true);
d.height += padding.height;
d.width += padding.width;
*size = maxdim(*size, d);
@@ -473,7 +473,7 @@ public:
break;
case GRP_WIDGET_MANAGE_VEHICLES_DROPDOWN: {
- DropDownList *list = this->BuildActionDropdownList(Group::IsValidID(this->group_sel));
+ DropDownList *list = this->BuildActionDropdownList(true, Group::IsValidID(this->group_sel));
ShowDropDownList(this, list, 0, GRP_WIDGET_MANAGE_VEHICLES_DROPDOWN);
break;
}