summaryrefslogtreecommitdiff
path: root/sw/source/uibase/uiview/pview.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase/uiview/pview.cxx')
-rw-r--r--sw/source/uibase/uiview/pview.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/sw/source/uibase/uiview/pview.cxx b/sw/source/uibase/uiview/pview.cxx
index 4ca5825d6966..2cc610fde482 100644
--- a/sw/source/uibase/uiview/pview.cxx
+++ b/sw/source/uibase/uiview/pview.cxx
@@ -1599,16 +1599,14 @@ void SwPagePreview::ScrollViewSzChg()
const Rectangle& rDocRect = pViewWin->GetPaintedPreviewDocRect();
const Size& rPreviewSize =
GetViewShell()->PagePreviewLayout()->GetPreviewDocSize();
- long nVisWidth = 0;
- long nThumb = 0;
Range aRange(0,0);
if(rDocRect.GetWidth() < rPreviewSize.Width())
{
bShowHScrollbar = true;
- nVisWidth = rDocRect.GetWidth();
- nThumb = rDocRect.Left();
+ long nVisWidth = rDocRect.GetWidth();
+ long nThumb = rDocRect.Left();
aRange = Range(0, rPreviewSize.Width());
pHScrollbar->SetRange( aRange );