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
commitfc540fcd0de8a47cdba81ac0283ffbe92a469c7f (patch)
tree4c39fab79069150311d89f4a9e8d1fe282e2fa90
parentbea0993015dedeb2f3e8e0bb58940ad10c6bd0dc (diff)
downloadopenttd-fc540fcd0de8a47cdba81ac0283ffbe92a469c7f.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;