From fc540fcd0de8a47cdba81ac0283ffbe92a469c7f Mon Sep 17 00:00:00 2001 From: peter1138 Date: Sat, 24 Mar 2007 18:56:59 +0000 Subject: (svn r9435) -Fix (r8972): ensure the cargo payment graph is at least 12 "items" high --- src/graph_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3-70-g09d2