summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2007-03-24 18:56:59 +0000
committerpeter1138 <peter1138@openttd.org>2007-03-24 18:56:59 +0000
commit8ec3e58b48ff180fbe6b2b0bc15df24d4d090893 (patch)
tree4c39fab79069150311d89f4a9e8d1fe282e2fa90
parent0aad93d1cea5f6a4f45dd84841543d7389552a2c (diff)
downloadopenttd-8ec3e58b48ff180fbe6b2b0bc15df24d4d090893.tar.xz
(svn r9435) -Fix (r8972): ensure the cargo payment graph is at least 12 "items" high
-rw-r--r--src/graph_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/graph_gui.cpp b/src/graph_gui.cpp
index 7e91666f8..ff714c10a 100644
--- a/src/graph_gui.cpp
+++ b/src/graph_gui.cpp
@@ -796,7 +796,7 @@ void ShowCargoPaymentRates()
}
/* Resize the window to fit the cargo types */
- ResizeWindow(w, 0, num_active * 8);
+ ResizeWindow(w, 0, max(num_active, 12U) * 8);
/* Add widgets for each cargo type */
w->widget_count += num_active;