]> git.saurik.com Git - wxWidgets.git/commitdiff
Removed useless if statement in slider code.
authorDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Mon, 19 Dec 2011 12:16:52 +0000 (12:16 +0000)
committerDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Mon, 19 Dec 2011 12:16:52 +0000 (12:16 +0000)
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

src/msw/slider.cpp

index 533303b4090a5469cb61a4df8caa42eb43e33c5a..3c5c561fec2e35c9dec0314cc5263cc3f72a4479 100644 (file)
@@ -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,