From d415c8ae8c9633a4d0b57e9e33358a5a649f7fcf Mon Sep 17 00:00:00 2001 From: YuSanka Date: Thu, 4 Feb 2021 10:15:29 +0100 Subject: [PATCH] MSW specific: GUI_ManipulatinPanel: Fixed rescaling of the system coordinate ComboBox --- src/slic3r/GUI/GUI_ObjectManipulation.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/slic3r/GUI/GUI_ObjectManipulation.cpp b/src/slic3r/GUI/GUI_ObjectManipulation.cpp index b3cef47c5..e9c873509 100644 --- a/src/slic3r/GUI/GUI_ObjectManipulation.cpp +++ b/src/slic3r/GUI/GUI_ObjectManipulation.cpp @@ -76,6 +76,7 @@ static choice_ctrl* create_word_local_combo(wxWindow *parent) void msw_rescale_word_local_combo(choice_ctrl* combo) { +#ifdef __WXOSX__ const wxString selection = combo->GetString(combo->GetSelection()); /* To correct scaling (set new controll size) of a wxBitmapCombobox @@ -97,6 +98,9 @@ void msw_rescale_word_local_combo(choice_ctrl* combo) combo->Append(_L("Local coordinates")); combo->SetValue(selection); +#else + combo->SetMinSize(wxSize(15 * wxGetApp().em_unit(), -1)); +#endif } static void set_font_and_background_style(wxWindow* win, const wxFont& font)