From 2dc0a33eb7871e24cd54e769de46515796c12b57 Mon Sep 17 00:00:00 2001 From: Edmond Chui <{ID}+{username}@users.noreply.github.com> Date: Wed, 3 Jul 2024 22:15:33 +0100 Subject: [PATCH] Fix #12840, ff3be45: "Show industry names" blank panel not initialized properly --- src/smallmap_gui.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/smallmap_gui.cpp b/src/smallmap_gui.cpp index 6c0bc4cf6d..e3daba039d 100644 --- a/src/smallmap_gui.cpp +++ b/src/smallmap_gui.cpp @@ -1457,7 +1457,7 @@ public: { _smallmap_industry_highlight = INVALID_INDUSTRYTYPE; this->overlay = std::make_unique(this, WID_SM_MAP, 0, this->GetOverlayCompanyMask(), 1); - this->InitNested(window_number); + this->CreateNestedTree(); this->LowerWidget(WID_SM_CONTOUR + this->map_type); this->RebuildColourIndexIfNecessary(); @@ -1468,6 +1468,7 @@ public: this->SetWidgetLoweredState(WID_SM_SHOW_IND_NAMES, this->show_ind_names); this->SetupWidgetData(); + this->FinishInitNested(window_number); this->SetZoomLevel(ZLC_INITIALIZE, nullptr); this->SmallMapCenterOnCurrentPos();