diff options
Diffstat (limited to 'sw/source/ui/uiview/viewport.cxx')
-rw-r--r-- | sw/source/ui/uiview/viewport.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sw/source/ui/uiview/viewport.cxx b/sw/source/ui/uiview/viewport.cxx index e60273dcbeab..6b0b80668eac 100644 --- a/sw/source/ui/uiview/viewport.cxx +++ b/sw/source/ui/uiview/viewport.cxx @@ -1076,6 +1076,15 @@ void SwView::OuterResizePixel( const Point &rOfst, const Size &rSize ) bShowV = pVOpt->IsViewVScrollBar(); } + if (!mbHScrollbarEnabled) + { + bHAuto = bShowH = false; + } + if (!mbVScrollbarEnabled) + { + bAuto = bShowV = false; + } + SwDocShell* pDocSh = GetDocShell(); sal_Bool bIsPreview = pDocSh->IsPreview(); if( bIsPreview ) |