diff --git a/src/msw/slider.cpp b/src/msw/slider.cpp index 7c1c7103f2..533303b409 100644 --- a/src/msw/slider.cpp +++ b/src/msw/slider.cpp @@ -465,11 +465,13 @@ void wxSlider::DoMoveWindow(int x, int y, int width, int height) holdBottomWidth, labelHeight); } if ( HasFlag(wxSL_VALUE_LABEL) ) + { labelOffset = longestLabelWidth + HGAP; DoMoveSibling((HWND)(*m_labels)[SliderLabel_Value], x, y + (height - labelHeight)/2, longestLabelWidth, labelHeight); + } } // position the slider itself along the left/right edge