From 6df3e1742e660e188e8943afdd2c44ccd7851c1f Mon Sep 17 00:00:00 2001 From: oltolm Date: Sat, 31 May 2025 16:29:07 +0200 Subject: [PATCH] UI: Fix wxWidgets assert in InfinityPage (#1582) --- src/gui/EmulatedUSBDevices/EmulatedUSBDeviceFrame.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/EmulatedUSBDevices/EmulatedUSBDeviceFrame.cpp b/src/gui/EmulatedUSBDevices/EmulatedUSBDeviceFrame.cpp index d40e5e5e..2186f8ea 100644 --- a/src/gui/EmulatedUSBDevices/EmulatedUSBDeviceFrame.cpp +++ b/src/gui/EmulatedUSBDevices/EmulatedUSBDeviceFrame.cpp @@ -90,9 +90,9 @@ wxPanel* EmulatedUSBDeviceFrame::AddSkylanderPage(wxNotebook* notebook) wxPanel* EmulatedUSBDeviceFrame::AddInfinityPage(wxNotebook* notebook) { auto* panel = new wxPanel(notebook); - auto* panelSizer = new wxBoxSizer(wxBOTH); + auto* panelSizer = new wxBoxSizer(wxVERTICAL); auto* box = new wxStaticBox(panel, wxID_ANY, _("Infinity Manager")); - auto* boxSizer = new wxStaticBoxSizer(box, wxBOTH); + auto* boxSizer = new wxStaticBoxSizer(box, wxVERTICAL); auto* row = new wxBoxSizer(wxHORIZONTAL); @@ -831,4 +831,4 @@ uint8 MoveDimensionFigureDialog::GetNewIndex() const std::array, 7> EmulatedUSBDeviceFrame::GetCurrentMinifigs() { return m_dimSlots; -} \ No newline at end of file +}