summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-09-29 09:41:01 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-09-29 11:10:28 +0100
commit4a031d7c971558f89693925bb504c1157ab6bd04 (patch)
treeb40abaf55f3bd180bf00630a0615bc3ee70abdca
parentb72eea1dbf5bd3b9f6972b37a776cbc34dc59859 (diff)
coverity#1325053 Dereference after null check
pre-change !pSh logic inverted at commit 1b15f4863e6d4b0a280ccd61713cbb1209ffe33e Author: Miklos Vajna <vmiklos@collabora.co.uk> Date: Fri Feb 6 12:12:02 2015 +0100 LOK: add LOK_CALLBACK_TEXT_SELECTION and implement it in sw Change-Id: I31662cb06add0d1a1c517b5f5416703aeaae1e77 Change-Id: If42741c4efce943aaff5081a1a75108470b2a488
-rw-r--r--sw/source/core/layout/trvlfrm.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/layout/trvlfrm.cxx b/sw/source/core/layout/trvlfrm.cxx
index 381df40becae..f71639eabfaa 100644
--- a/sw/source/core/layout/trvlfrm.cxx
+++ b/sw/source/core/layout/trvlfrm.cxx
@@ -2018,7 +2018,7 @@ void SwRootFrm::CalcFrmRects(SwShellCrsr &rCrsr)
SwViewShell *pSh = GetCurrShell();
- bool bIgnoreVisArea = false;
+ bool bIgnoreVisArea = true;
if (pSh)
bIgnoreVisArea = pSh->GetViewOptions()->IsPDFExport() || pSh->isTiledRendering();