summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/view/prevwsh.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/view/prevwsh.cxx b/sc/source/ui/view/prevwsh.cxx
index 5ab2a6ece5c5..e5d959cb03e3 100644
--- a/sc/source/ui/view/prevwsh.cxx
+++ b/sc/source/ui/view/prevwsh.cxx
@@ -268,8 +268,8 @@ void ScPreviewShell::UpdateNeededScrollBars( bool bFromZoom )
return;
// for centering, page size without the shadow is used
- bool bVert = pVerScroll ? pVerScroll->IsVisible() : false;
- bool bHori = pHorScroll ? pHorScroll->IsVisible() : false;
+ bool bVert = pVerScroll->IsVisible();
+ bool bHori = pHorScroll->IsVisible();
Size aWindowSize = pPreview->GetOutputSize();
Point aPos = pPreview->GetPosPixel();
Size aWindowPixelSize = pPreview->GetOutputSizePixel();