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
This commit is contained in:
Dimitri Schoolwerth
2011-12-19 12:16:52 +00:00
parent e528cca7c1
commit 2a263bbbd7

View 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,