From c7746031790c57965dddf4c24399096cebe8bcc8 Mon Sep 17 00:00:00 2001 From: YuSanka Date: Wed, 24 Aug 2022 09:44:56 +0200 Subject: [PATCH] GTK3 specific: Follow-up https://github.com/Prusa-Development/PrusaSlicerPrivate/commit/b19ae0df5b56f4319a0329282d1d76e90c224b08 - Fix for build --- src/slic3r/GUI/Plater.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index 8ada186f4..c50b8f56b 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -868,9 +868,9 @@ Sidebar::Sidebar(Plater *parent) scrolled_sizer->Add(p->mode_sizer, 0, wxALIGN_CENTER_HORIZONTAL); #ifdef __WXGTK3__ - wxDirection size_margin = wxLEFT | wxRIGHT; + int size_margin = wxLEFT | wxRIGHT; #else - wxDirection size_margin = wxLEFT; + int size_margin = wxLEFT; #endif // __WXGTK3__ is_msw ? @@ -998,7 +998,7 @@ void Sidebar::init_filament_combo(PlaterPresetComboBox **combo, const int extr_i auto /***/sizer_filaments = this->p->sizer_filaments; sizer_filaments->Add(combo_and_btn_sizer, 1, wxEXPAND | #ifdef __WXGTK3__ - wxRIGHT, margin_5); + wxRIGHT, int(0.5 * wxGetApp().em_unit())); #else wxBOTTOM, 1); #endif // __WXGTK3__