Preserve wxSlider value when changing its range in wxOSX too.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 19 Dec 2010 14:08:42 +0000 (14:08 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 19 Dec 2010 14:08:42 +0000 (14:08 +0000)
commit1c7ce073474469e25aedb6c203fdb6f549d18870
treedba1786f052662b17a61598e520668c86d7af63c
parentf74ab0041bf55ab9377f6da8f3356a182378e36a
Preserve wxSlider value when changing its range in wxOSX too.

This fix is similar to r66368 for wxMSW and preserves the slider value when
its range changes. This is necessary because while the underlying native
control value doesn't change when the range is, the logical value of wxSlider
does change if it must be inversed as this depends on the range.

See #12765.

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