From b22b7c2bf41c58b35d686a429baf771686c5f2d4 Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Wed, 15 Sep 2021 08:30:09 +0200 Subject: [PATCH] Follow-up of 60b5e0d0d5ead48d86bbdc78d48ede156d50a5e4 - Apply the change only on Windows --- src/slic3r/GUI/GUI.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/slic3r/GUI/GUI.cpp b/src/slic3r/GUI/GUI.cpp index 00490d03da..023ba6f356 100644 --- a/src/slic3r/GUI/GUI.cpp +++ b/src/slic3r/GUI/GUI.cpp @@ -383,7 +383,9 @@ void create_combochecklist(wxComboCtrl* comboCtrl, const std::string& text, cons // the following line messes up the popup size the first time it is shown on wxWidgets 3.1.3 // comboCtrl->EnablePopupAnimation(false); +#ifdef _WIN32 popup->SetFont(comboCtrl->GetFont()); +#endif // _WIN32 comboCtrl->SetPopupControl(popup); wxString title = from_u8(text); max_width = std::max(max_width, 60 + comboCtrl->GetTextExtent(title).x);