From: Dimitri Schoolwerth Date: Mon, 19 Dec 2011 12:16:52 +0000 (+0000) Subject: Removed useless if statement in slider code. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/2a263bbbd7111248564e1c45ef6a28600b77acaf Removed useless if statement in slider code. The y position of the slider is already taken care of by the variable ySlider, changing labelOffset has no use. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70047 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/slider.cpp b/src/msw/slider.cpp index 533303b409..3c5c561fec 100644 --- a/src/msw/slider.cpp +++ b/src/msw/slider.cpp @@ -563,8 +563,6 @@ void wxSlider::DoMoveWindow(int x, int y, int width, int height) } // position the slider itself along the top/bottom edge - if ( HasFlag(wxSL_MIN_MAX_LABELS) || HasFlag(wxSL_VALUE_LABEL) ) - labelOffset = labelHeight; wxSliderBase::DoMoveWindow( x + minLabelWidth + VGAP, ySlider,