summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorIvan Timofeev <timofeev.i.s@gmail.com>2012-02-02 19:32:03 +0400
committerIvan Timofeev <timofeev.i.s@gmail.com>2012-02-11 19:18:03 +0400
commitfa9b5b18d44c90e739fcd82a621ac44c6513ef76 (patch)
treede04021878dfc1376a5016c622ee1bbd1efe0bcb /sw
parent731a8d7d5bd47bc17f21065f195170da711f3277 (diff)
bThumbEnabled is always true
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();
}