From 5b1c6772daa55070cfff763779dc93f155c74789 Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Sun, 3 Aug 2025 20:04:17 +0100 Subject: [PATCH] Fix 557fb0bd78, bd57aee3a9: Remove separate x-axis label for industry/town production graph. (#14497) This is no longer necessary (and is wrong) as it's now part of the horizontal scale selector. --- src/graph_gui.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/graph_gui.cpp b/src/graph_gui.cpp index 57021e7ff5..d912087f7d 100644 --- a/src/graph_gui.cpp +++ b/src/graph_gui.cpp @@ -1185,7 +1185,7 @@ struct BaseCargoGraphWindow : BaseGraphWindow { BaseCargoGraphWindow(WindowDesc &desc, StringID format_str_y_axis) : BaseGraphWindow(desc, format_str_y_axis) {} - void InitializeWindow(WindowNumber number, StringID footer_wallclock = STR_EMPTY, StringID footer_calendar = STR_EMPTY) + void InitializeWindow(WindowNumber number, StringID footer_wallclock = STR_NULL, StringID footer_calendar = STR_NULL) { this->CreateNestedTree(); @@ -1704,7 +1704,7 @@ struct IndustryProductionGraphWindow : BaseCargoGraphWindow { if (!i->IsCargoProduced()) this->masked_range = (1U << 0) | (1U << 1); if (!i->IsCargoAccepted()) this->masked_range = (1U << 2) | (1U << 3); - this->InitializeWindow(window_number, STR_GRAPH_LAST_24_MINUTES_TIME_LABEL); + this->InitializeWindow(window_number); } void OnInit() override @@ -1878,7 +1878,7 @@ struct TownCargoGraphWindow : BaseCargoGraphWindow { this->draw_dates = !TimerGameEconomy::UsingWallclockUnits(); this->ranges = RANGE_LABELS; - this->InitializeWindow(window_number, STR_GRAPH_LAST_24_MINUTES_TIME_LABEL); + this->InitializeWindow(window_number); } void OnInit() override