sw/source/ui/inc/scroll.hxx    |    1 -
 sw/source/ui/uiview/scroll.cxx |    4 +---
 2 files changed, 1 insertion(+), 4 deletions(-)

New commits:
commit fa9b5b18d44c90e739fcd82a621ac44c6513ef76
Author: Ivan Timofeev <timofeev....@gmail.com>
Date:   Thu Feb 2 19:32:03 2012 +0400

    bThumbEnabled is always true

diff --git a/sw/source/ui/inc/scroll.hxx b/sw/source/ui/inc/scroll.hxx
index f0243f5..2bc813a 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 2bf1d6d..3a3b9df 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();
 }
_______________________________________________
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to