summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/uiview/pview.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/source/ui/uiview/pview.cxx b/sw/source/ui/uiview/pview.cxx
index ae2e1d75b5e3..b37baea376bb 100644
--- a/sw/source/ui/uiview/pview.cxx
+++ b/sw/source/ui/uiview/pview.cxx
@@ -1666,10 +1666,13 @@ void SwPagePreView::ScrollViewSzChg()
if(rDocRect.GetWidth() < rPreviewSize.Width())
{
+ pHScrollbar->Show( sal_True );
nVisWidth = rDocRect.GetWidth();
nThumb = rDocRect.Left();
aRange = Range(0, rPreviewSize.Width());
}
+ else
+ pHScrollbar->Show( sal_False );
pHScrollbar->SetRange( aRange );
pHScrollbar->SetVisibleSize( nVisWidth );
pHScrollbar->SetThumbPos( nThumb );