From 63ed5de9576e72e7a2897f93f35ae2c4130619ae Mon Sep 17 00:00:00 2001 From: Peter Nelson Date: Fri, 3 Nov 2023 08:17:26 +0000 Subject: [PATCH] Fix: Some NWidget lists were not properly closed. (#11425) (cherry picked from commit d4a77411a5d50e7cef3a532d0a83bc2efa67a1a4) --- src/bootstrap_gui.cpp | 1 + src/league_gui.cpp | 2 ++ src/misc_gui.cpp | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/bootstrap_gui.cpp b/src/bootstrap_gui.cpp index c33db460b2..b9701af967 100644 --- a/src/bootstrap_gui.cpp +++ b/src/bootstrap_gui.cpp @@ -33,6 +33,7 @@ /** Widgets for the background window to prevent smearing. */ static const struct NWidgetPart _background_widgets[] = { NWidget(WWT_PANEL, COLOUR_DARK_BLUE, WID_BB_BACKGROUND), SetResize(1, 1), + EndContainer(), }; /** diff --git a/src/league_gui.cpp b/src/league_gui.cpp index 8775695b16..09ad666bc6 100644 --- a/src/league_gui.cpp +++ b/src/league_gui.cpp @@ -194,6 +194,7 @@ static const NWidgetPart _nested_performance_league_widgets[] = { NWidget(WWT_STICKYBOX, COLOUR_BROWN), EndContainer(), NWidget(WWT_PANEL, COLOUR_BROWN, WID_PLT_BACKGROUND), SetMinimalSize(400, 0), SetMinimalTextLines(15, WidgetDimensions::unscaled.framerect.Vertical()), + EndContainer(), }; static WindowDesc _performance_league_desc( @@ -426,6 +427,7 @@ static const NWidgetPart _nested_script_league_widgets[] = { NWidget(WWT_STICKYBOX, COLOUR_BROWN), EndContainer(), NWidget(WWT_PANEL, COLOUR_BROWN, WID_SLT_BACKGROUND), SetMinimalSize(400, 0), SetMinimalTextLines(15, WidgetDimensions::scaled.framerect.Vertical()), + EndContainer(), }; static WindowDesc _script_league_desc( diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp index 9ee02a65f9..9b88368fb9 100644 --- a/src/misc_gui.cpp +++ b/src/misc_gui.cpp @@ -693,7 +693,7 @@ void HideFillingPercent(TextEffectID *te_id) } static const NWidgetPart _nested_tooltips_widgets[] = { - NWidget(WWT_EMPTY, INVALID_COLOUR, WID_TT_BACKGROUND), EndContainer(), + NWidget(WWT_EMPTY, INVALID_COLOUR, WID_TT_BACKGROUND), }; static WindowDesc _tool_tips_desc(