]> git.saurik.com Git - wxWidgets.git/commit
Fixed min and max label values not being swapped when using wxSL_INVERSE in a horizon...
authorDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Mon, 19 Dec 2011 12:28:42 +0000 (12:28 +0000)
committerDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Mon, 19 Dec 2011 12:28:42 +0000 (12:28 +0000)
commitcac008ad62d1e4f10f22e25f599990e3db69b355
tree345c820ac317c3878ce9c37a41ac9bfc0c6a9fd3
parent2a263bbbd7111248564e1c45ef6a28600b77acaf
Fixed min and max label values not being swapped when using wxSL_INVERSE in a horizontal MSW slider.

Changed wxSlider::GetLabelsSize to let the widthMin and widthMax values contain the width of what the minimum (always on the left/top) and maximum (always on the right/bottom) _label_ will contain. This is not the same as the minimum and maximum _value_ in case of using wxSL_INVERSE.

Also don't swap the position of the min/max labels in a horizontal slider with wxSL_INVERSE (just how the labels already stay in place in a vertical slider, regardless of wxSL_INVERSE usage), nor their width.

Regression since r65941.

Fixes #13416.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70048 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/msw/slider.cpp