mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-14 19:12:38 -07:00
Fixed "hard_code" setting of the size for the Sidebar and Tabs
+ Fixed assert after config_wizard changing
This commit is contained in:
@@ -55,9 +55,8 @@ wxFrame(NULL, wxID_ANY, SLIC3R_BUILD, wxDefaultPosition, wxDefaultSize, wxDEFAUL
|
||||
|
||||
|
||||
// initialize default width_unit according to the width of the one symbol ("x") of the current system font
|
||||
const wxString x_str = "x";
|
||||
const wxSize size = GetTextExtent(x_str);
|
||||
wxGetApp().set_width_unit(size.x);
|
||||
const wxSize size = GetTextExtent("m");
|
||||
wxGetApp().set_em_unit(size.x);
|
||||
|
||||
// initialize tabpanel and menubar
|
||||
init_tabpanel();
|
||||
|
||||
Reference in New Issue
Block a user