Fixed an assert from PrusaDoubleSlider
This commit is contained in:
parent
6066f7b7c5
commit
72986239ce
1 changed files with 1 additions and 2 deletions
|
@ -1483,8 +1483,7 @@ PrusaDoubleSlider::PrusaDoubleSlider(wxWindow *parent,
|
||||||
line_pens = { &DARK_GREY_PEN, &GREY_PEN, &LIGHT_GREY_PEN };
|
line_pens = { &DARK_GREY_PEN, &GREY_PEN, &LIGHT_GREY_PEN };
|
||||||
segm_pens = { &DARK_ORANGE_PEN, &ORANGE_PEN, &LIGHT_ORANGE_PEN };
|
segm_pens = { &DARK_ORANGE_PEN, &ORANGE_PEN, &LIGHT_ORANGE_PEN };
|
||||||
|
|
||||||
wxPaintDC dc(this);
|
const wxFont& font = GetFont();
|
||||||
const wxFont& font = dc.GetFont();
|
|
||||||
m_font = is_osx ? font.Smaller().Smaller() : font.Smaller();
|
m_font = is_osx ? font.Smaller().Smaller() : font.Smaller();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue