Blob Blame History Raw
From e8191e29362314214d09dd774ab6993d076d852d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolanm@redhat.com>
Date: Tue, 29 Sep 2015 09:41:01 +0100
Subject: [PATCH 165/398] 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
(cherry picked from commit 4a031d7c971558f89693925bb504c1157ab6bd04)
---
 sw/source/core/layout/trvlfrm.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sw/source/core/layout/trvlfrm.cxx b/sw/source/core/layout/trvlfrm.cxx
index 65aa24f69e72..aec74f35feb3 100644
--- a/sw/source/core/layout/trvlfrm.cxx
+++ b/sw/source/core/layout/trvlfrm.cxx
@@ -2019,7 +2019,7 @@ void SwRootFrm::CalcFrmRects(SwShellCrsr &rCrsr)
 
     SwViewShell *pSh = GetCurrShell();
 
-    bool bIgnoreVisArea = false;
+    bool bIgnoreVisArea = true;
     if (pSh)
         bIgnoreVisArea = pSh->GetViewOptions()->IsPDFExport() || pSh->isTiledRendering();
 
-- 
2.12.0