Fixed OSX compilation bug

This commit is contained in:
YuSanka 2019-01-10 13:41:59 +01:00
parent 5f9d36e5b0
commit fcf41c7eb8
3 changed files with 3 additions and 3 deletions

View File

@ -562,7 +562,7 @@ Sidebar::Sidebar(Plater *parent)
p->sliced_info = new SlicedInfo(p->scrolled);
// Sizer in the scrolled area
scrolled_sizer->Add(p->mode_sizer, 0, wxALIGN_CENTER_HORIZONTAL | wxBOTTOM, 5);
scrolled_sizer->Add(p->mode_sizer, 0, wxALIGN_RIGHT/*CENTER_HORIZONTAL*/ | wxBOTTOM | wxRIGHT, 5);
scrolled_sizer->Add(p->sizer_presets, 0, wxEXPAND | wxLEFT, 2);
scrolled_sizer->Add(p->sizer_params, 1, wxEXPAND);
scrolled_sizer->Add(p->object_info, 0, wxEXPAND | wxTOP | wxLEFT, 20);

View File

@ -2328,7 +2328,7 @@ PrusaModeSizer::PrusaModeSizer(wxWindow *parent) :
}
void PrusaModeSizer::SetMode(const Slic3r::ConfigOptionMode& mode)
void PrusaModeSizer::SetMode(const int mode)
{
for (int m = 0; m < mode_btns.size(); m++)
mode_btns[m]->SetState(m == mode);

View File

@ -911,7 +911,7 @@ public:
PrusaModeSizer( wxWindow *parent);
~PrusaModeSizer() {}
void SetMode(const Slic3r::ConfigOptionMode& mode);
void SetMode(const /*ConfigOptionMode*/int mode);
private:
std::vector<PrusaModeButton*> mode_btns;