diff options
-rw-r--r-- | src/graph_gui.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/graph_gui.cpp b/src/graph_gui.cpp index a8e0d22ab..fca74b3b7 100644 --- a/src/graph_gui.cpp +++ b/src/graph_gui.cpp @@ -822,6 +822,13 @@ struct PaymentRatesGraphWindow : BaseGraphWindow { this->OnHundredthTick(); this->InitNested(desc, window_number); + + int i = 0; + const CargoSpec *cs; + FOR_ALL_CARGOSPECS(cs) { + this->SetWidgetLoweredState(CPW_CARGO_FIRST + i, !HasBit(_legend_excluded_cargo, i)); + i++; + } } virtual void UpdateWidgetSize(int widget, Dimension *size, const Dimension &padding, Dimension *fill, Dimension *resize) |