From d22d8776e63c05d2fab5e0256ebb4369a3bed965 Mon Sep 17 00:00:00 2001 From: Ralph Sennhauser Date: Mon, 29 Sep 2025 09:15:25 +0200 Subject: [PATCH] Fix layouting of texture preview in atlas Commit fe192fe58fae7879b8bee0808c0afd31e96cc0d9 added one extra level, so we have to layout the parent of the parent now to actually layout the sidebar. Fixes: #8388 Signed-off-by: Ralph Sennhauser --- .../atlas/AtlasUI/ScenarioEditor/Sections/Terrain/Terrain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Terrain/Terrain.cpp b/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Terrain/Terrain.cpp index 2b67e6ecf1..ad9e821ef6 100644 --- a/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Terrain/Terrain.cpp +++ b/source/tools/atlas/AtlasUI/ScenarioEditor/Sections/Terrain/Terrain.cpp @@ -168,7 +168,7 @@ public: m_Sizer->Add(label, wxSizerFlags().Expand()); // We have to force the sidebar to layout manually - GetParent()->Layout(); + GetParent()->GetParent()->Layout(); if (preview.loaded && m_Timer.IsRunning()) {