Fixed "hard_code" setting of the size for the Sidebar and Tabs

+ Fixed assert after config_wizard changing
This commit is contained in:
YuSanka 2019-02-04 10:35:16 +01:00
parent ba6206ab62
commit 4005d06452
15 changed files with 62 additions and 56 deletions
src/slic3r/GUI

View file

@ -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();