summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorSzabolcs Dezsi <dezsiszabi@hotmail.com>2012-03-15 10:15:11 +0100
committerJan Holesovsky <kendy@suse.cz>2012-03-15 13:39:15 +0100
commiteeeb4d9a1c772b12aab515c8d5089fb6b5e003c7 (patch)
treeade19a503dacd3ce459a2c01ea854abf4b5c2ffa /sw
parente580246b475bba07f581452c03eff7617d06efc4 (diff)
Horizontal scrollbar fix in Writer and Calc Print Preview
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 );