X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9a83f860948059b0273b5cc6d9e43fadad3ebfca..a8abba41bc63336be1f6002b041578e79c473d24:/src/msw/slider.cpp?ds=sidebyside diff --git a/src/msw/slider.cpp b/src/msw/slider.cpp index 275f2bb909..62643ec986 100644 --- a/src/msw/slider.cpp +++ b/src/msw/slider.cpp @@ -575,7 +575,7 @@ void wxSlider::SetValue(int value) { ::SendMessage(GetHwnd(), TBM_SETPOS, (WPARAM)TRUE, (LPARAM)ValueInvertOrNot(value)); - if ( m_labels ) + if ( HasFlag(wxSL_VALUE_LABEL) ) { ::SetWindowText((*m_labels)[SliderLabel_Value], Format(value).wx_str()); } @@ -589,7 +589,7 @@ void wxSlider::SetRange(int minValue, int maxValue) ::SendMessage(GetHwnd(), TBM_SETRANGEMIN, TRUE, m_rangeMin); ::SendMessage(GetHwnd(), TBM_SETRANGEMAX, TRUE, m_rangeMax); - if ( m_labels ) + if ( HasFlag(wxSL_MIN_MAX_LABELS) ) { ::SetWindowText((*m_labels)[SliderLabel_Min], Format(ValueInvertOrNot(m_rangeMin)).wx_str());