summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;