From 72986239cedbd39de5b4f293ada236e5f72c48a6 Mon Sep 17 00:00:00 2001 From: YuSanka Date: Wed, 27 Feb 2019 11:05:59 +0100 Subject: [PATCH] Fixed an assert from PrusaDoubleSlider --- src/slic3r/GUI/wxExtensions.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/slic3r/GUI/wxExtensions.cpp b/src/slic3r/GUI/wxExtensions.cpp index 8afb54752..eb09e0ef3 100644 --- a/src/slic3r/GUI/wxExtensions.cpp +++ b/src/slic3r/GUI/wxExtensions.cpp @@ -1483,8 +1483,7 @@ PrusaDoubleSlider::PrusaDoubleSlider(wxWindow *parent, line_pens = { &DARK_GREY_PEN, &GREY_PEN, &LIGHT_GREY_PEN }; segm_pens = { &DARK_ORANGE_PEN, &ORANGE_PEN, &LIGHT_ORANGE_PEN }; - wxPaintDC dc(this); - const wxFont& font = dc.GetFont(); + const wxFont& font = GetFont(); m_font = is_osx ? font.Smaller().Smaller() : font.Smaller(); }