summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2016-05-29 12:21:40 +0000
committerfrosch <frosch@openttd.org>2016-05-29 12:21:40 +0000
commit7d4754a4f86d635104c257b29a58d5488f7ebf4e (patch)
tree7a34b13c58481ad2a610c172b520ecc996be4bb2 /src
parentcfca6922e720ba14722217629edb6ef41d46b9fb (diff)
downloadopenttd-7d4754a4f86d635104c257b29a58d5488f7ebf4e.tar.xz
(svn r27583) -Fix [FS#6415]: Do not decrease the column width of depot windows when vehicles with high unitnumbers leave. (Airbus)
Diffstat (limited to 'src')
-rw-r--r--src/depot_gui.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp
index 4aff4700b..24a14b833 100644
--- a/src/depot_gui.cpp
+++ b/src/depot_gui.cpp
@@ -663,7 +663,8 @@ struct DepotWindow : Window {
DepotSortList(&this->vehicle_list);
uint new_unitnumber_digits = GetUnitNumberDigits(this->vehicle_list);
- if (this->unitnumber_digits != new_unitnumber_digits) {
+ /* Only increase the size; do not decrease to prevent constant changes */
+ if (this->unitnumber_digits < new_unitnumber_digits) {
this->unitnumber_digits = new_unitnumber_digits;
this->ReInit();
}