From 8ec3e58b48ff180fbe6b2b0bc15df24d4d090893 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Sat, 24 Mar 2007 18:56:59 +0000 Subject: [PATCH] (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 7e91666f85..ff714c10ae 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;