Fix for last commit

This commit is contained in:
YuSanka 2018-08-22 08:54:07 +02:00
parent bc64154f21
commit 5cd4597d38

View File

@ -767,7 +767,9 @@ PrusaDoubleSlider::PrusaDoubleSlider( wxWindow *parent,
m_min_value(minValue), m_max_value(maxValue), m_min_value(minValue), m_max_value(maxValue),
m_style(style) m_style(style)
{ {
#ifndef __WXOSX__ // SetDoubleBuffered exists on Win and Linux/GTK, but is missing on OSX
SetDoubleBuffered(true); SetDoubleBuffered(true);
#endif //__WXOSX__
if (m_style != wxSL_HORIZONTAL && m_style != wxSL_VERTICAL) if (m_style != wxSL_HORIZONTAL && m_style != wxSL_VERTICAL)
m_style = wxSL_HORIZONTAL; m_style = wxSL_HORIZONTAL;