Skip to content

Commit 6df3e17

Browse files
authored
UI: Fix wxWidgets assert in InfinityPage (#1582)
1 parent 152b790 commit 6df3e17

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/gui/EmulatedUSBDevices/EmulatedUSBDeviceFrame.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ wxPanel* EmulatedUSBDeviceFrame::AddSkylanderPage(wxNotebook* notebook)
9090
wxPanel* EmulatedUSBDeviceFrame::AddInfinityPage(wxNotebook* notebook)
9191
{
9292
auto* panel = new wxPanel(notebook);
93-
auto* panelSizer = new wxBoxSizer(wxBOTH);
93+
auto* panelSizer = new wxBoxSizer(wxVERTICAL);
9494
auto* box = new wxStaticBox(panel, wxID_ANY, _("Infinity Manager"));
95-
auto* boxSizer = new wxStaticBoxSizer(box, wxBOTH);
95+
auto* boxSizer = new wxStaticBoxSizer(box, wxVERTICAL);
9696

9797
auto* row = new wxBoxSizer(wxHORIZONTAL);
9898

@@ -831,4 +831,4 @@ uint8 MoveDimensionFigureDialog::GetNewIndex() const
831831
std::array<std::optional<uint32>, 7> EmulatedUSBDeviceFrame::GetCurrentMinifigs()
832832
{
833833
return m_dimSlots;
834-
}
834+
}

0 commit comments

Comments
 (0)