mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-07 23:17:35 -06:00
FIX: wxWidgets asserts
Change-Id: I583edbde501c2bfe8adfa8fdb525479a379a4cb8
This commit is contained in:
parent
a7bd14003b
commit
66c89c62e2
17 changed files with 46 additions and 39 deletions
|
@ -266,7 +266,7 @@ void Tab::create_preset_tab()
|
|||
m_search_input->SetFont(wxGetApp().bold_font());
|
||||
|
||||
search_sizer->Add(new wxWindow(m_search_item, wxID_ANY, wxDefaultPosition, wxSize(0, 0)), 0, wxEXPAND | wxLEFT, 16);
|
||||
search_sizer->Add(m_search_input, 1, wxEXPAND | wxALIGN_CENTER_VERTICAL | wxALL, wxGetApp().em_unit() / 2);
|
||||
search_sizer->Add(m_search_input, 1, wxEXPAND | wxALL, wxGetApp().em_unit() / 2);
|
||||
search_sizer->Add(new wxWindow(m_search_input, wxID_ANY, wxDefaultPosition, wxSize(0, 0)), 0, wxEXPAND | wxLEFT, 16);
|
||||
|
||||
|
||||
|
@ -334,7 +334,7 @@ void Tab::create_preset_tab()
|
|||
// BBS: model config
|
||||
if (m_presets_choice) {
|
||||
m_presets_choice->Reparent(m_top_panel);
|
||||
m_top_sizer->Add(m_presets_choice, 1, wxLEFT | wxRIGHT | wxEXPAND | wxALIGN_CENTER_VERTICAL, 10);
|
||||
m_top_sizer->Add(m_presets_choice, 1, wxLEFT | wxRIGHT | wxEXPAND, 10);
|
||||
} else {
|
||||
m_top_sizer->AddSpacer(10);
|
||||
m_top_sizer->AddStretchSpacer(1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue