mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-06-16 08:52:43 +00:00
Fix wxEXPAND | wxALIGN_* sizer flag conflicts for wxWidgets 3.2+
wxWidgets 3.2+ asserts on invalid sizer flag combinations where wxEXPAND (which fills the entire space in the secondary direction) is combined with wxALIGN_* flags (which are meaningless when expanding). Remove the conflicting wxALIGN_* flags from all 112 occurrences across 21 files, keeping wxEXPAND and any non-conflicting flags intact.
This commit is contained in:
@@ -618,7 +618,7 @@ void AMSSettingTypePanel::CreateGui()
|
||||
h_sizer->AddStretchSpacer();
|
||||
h_sizer->Add(m_type_combobox, 0, wxEXPAND);
|
||||
h_sizer->Add(m_switching_icon, 0, wxALIGN_CENTER);
|
||||
h_sizer->Add(m_switching_tips, 0, wxEXPAND | wxLEFT | wxALIGN_CENTER, FromDIP(8));
|
||||
h_sizer->Add(m_switching_tips, 0, wxEXPAND | wxLEFT, FromDIP(8));
|
||||
SetSizer(h_sizer);
|
||||
Layout();
|
||||
Fit();
|
||||
@@ -754,7 +754,7 @@ void AMSSettingArrangeAMSOrder::CreateGui()
|
||||
m_btn_rearrange->Bind(wxEVT_BUTTON, &AMSSettingArrangeAMSOrder::OnBtnRearrangeClicked, this);
|
||||
h_sizer->Add(title, 0);
|
||||
h_sizer->AddStretchSpacer();
|
||||
h_sizer->Add(m_btn_rearrange, 0, wxEXPAND | wxALIGN_CENTER_VERTICAL);
|
||||
h_sizer->Add(m_btn_rearrange, 0, wxEXPAND);
|
||||
SetSizer(h_sizer);
|
||||
Layout();
|
||||
Fit();
|
||||
|
||||
Reference in New Issue
Block a user