(svn r9435) -Fix (r8972): ensure the cargo payment graph is at least 12 "items" high

This commit is contained in:
peter1138 2007-03-24 18:56:59 +00:00
parent bea0993015
commit fc540fcd0d
1 changed files with 1 additions and 1 deletions

View File

@ -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;