Fix #12840, ff3be45: "Show industry names" blank panel not initialized properly

This commit is contained in:
Edmond Chui 2024-07-03 22:15:33 +01:00 committed by rubidium42
parent 794af62286
commit 2dc0a33eb7

View File

@ -1457,7 +1457,7 @@ public:
{
_smallmap_industry_highlight = INVALID_INDUSTRYTYPE;
this->overlay = std::make_unique<LinkGraphOverlay>(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();