summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/inc/scroll.hxx1
-rw-r--r--sw/source/ui/uiview/scroll.cxx4
2 files changed, 1 insertions, 4 deletions
diff --git a/sw/source/ui/inc/scroll.hxx b/sw/source/ui/inc/scroll.hxx
index f0243f5fc6ee..2bc813af7269 100644
--- a/sw/source/ui/inc/scroll.hxx
+++ b/sw/source/ui/inc/scroll.hxx
@@ -34,7 +34,6 @@ class SwScrollbar: public ScrollBar
Size aDocSz;
sal_Bool bHori :1; // horizontal = salTrue, otherwise vertical
sal_Bool bAuto :1; // for scrolling mode
- sal_Bool bThumbEnabled:1;
sal_Bool bVisible :1; // show/hide should only set this flag
sal_Bool bSizeSet :1; // was the size already set?
diff --git a/sw/source/ui/uiview/scroll.cxx b/sw/source/ui/uiview/scroll.cxx
index 2bf1d6d74f5f..3a3b9df1b2b9 100644
--- a/sw/source/ui/uiview/scroll.cxx
+++ b/sw/source/ui/uiview/scroll.cxx
@@ -39,7 +39,6 @@ SwScrollbar::SwScrollbar( Window *pWin, sal_Bool bHoriz ) :
WinBits( WB_3DLOOK | WB_HIDE | ( bHoriz ? WB_HSCROLL : WB_VSCROLL) ) ),
bHori( bHoriz ),
bAuto( sal_False ),
- bThumbEnabled( sal_True ),
bVisible(sal_False),
bSizeSet(sal_False)
{
@@ -87,8 +86,7 @@ void SwScrollbar::ViewPortChgd( const Rectangle &rRect )
SetVisibleSize( nVisible );
DocSzChgd(aDocSz);
- if ( bThumbEnabled )
- SetThumbPos( nThumb );
+ SetThumbPos( nThumb );
if(bAuto)
AutoShow();
}