summaryrefslogtreecommitdiff
path: root/sc/source/ui/view
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-11 12:49:48 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-11 14:33:35 +0000
commitdbc2cbe4f2f5f790f0849a3ed4933cfec20aa2e3 (patch)
tree72051cc0aca0da225773230c49021e5ed7995842 /sc/source/ui/view
parent4eee115824e8eec8c824f72253d86caf593e0e11 (diff)
coverity#735818 Dereference after null check
Change-Id: I0f2e9e5f826ca8cd9ce81a45b4610b5adf356934
Diffstat (limited to 'sc/source/ui/view')
-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();