summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-08-18 16:38:48 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-08-19 06:53:51 +0200
commit50acead19bd13a344f8ca9b3879f8e8cb0b24eb7 (patch)
tree89a87c4192744c95a6626d78b80c63cff3fdcf54 /vcl
parent4105174973aaabc25148e53571b7a4fc356098de (diff)
convert WB_SLIDERSET to a bool field
Change-Id: I8a3767e162a14069937d52f5eb57ae5cd7f3fa7b Reviewed-on: https://gerrit.libreoffice.org/41302 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/control/slider.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/vcl/source/control/slider.cxx b/vcl/source/control/slider.cxx
index 1bbf92750f25..102e10aae82a 100644
--- a/vcl/source/control/slider.cxx
+++ b/vcl/source/control/slider.cxx
@@ -57,6 +57,7 @@ void Slider::ImplInit( vcl::Window* pParent, WinBits nStyle )
meScrollType = ScrollType::DontKnow;
mbCalcSize = true;
mbFullDrag = true;
+ mbScrollTypeSet = false;
mpLinkedField = nullptr;
@@ -627,7 +628,7 @@ void Slider::MouseButtonDown( const MouseEvent& rMEvt )
}
else if ( ImplIsPageUp( rMousePos ) )
{
- if( GetStyle() & WB_SLIDERSET )
+ if( mbScrollTypeSet )
meScrollType = ScrollType::Set;
else
{
@@ -637,7 +638,7 @@ void Slider::MouseButtonDown( const MouseEvent& rMEvt )
}
else if ( ImplIsPageDown( rMousePos ) )
{
- if( GetStyle() & WB_SLIDERSET )
+ if( mbScrollTypeSet )
meScrollType = ScrollType::Set;
else
{