Blame SOURCES/0165-coverity-1325053-Dereference-after-null-check.patch

f325b2
From e8191e29362314214d09dd774ab6993d076d852d Mon Sep 17 00:00:00 2001
f325b2
From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolanm@redhat.com>
f325b2
Date: Tue, 29 Sep 2015 09:41:01 +0100
f325b2
Subject: [PATCH 165/398] coverity#1325053 Dereference after null check
f325b2
f325b2
pre-change !pSh logic inverted at
f325b2
f325b2
commit 1b15f4863e6d4b0a280ccd61713cbb1209ffe33e
f325b2
Author: Miklos Vajna <vmiklos@collabora.co.uk>
f325b2
Date:   Fri Feb 6 12:12:02 2015 +0100
f325b2
f325b2
    LOK: add LOK_CALLBACK_TEXT_SELECTION and implement it in sw
f325b2
f325b2
    Change-Id: I31662cb06add0d1a1c517b5f5416703aeaae1e77
f325b2
f325b2
Change-Id: If42741c4efce943aaff5081a1a75108470b2a488
f325b2
(cherry picked from commit 4a031d7c971558f89693925bb504c1157ab6bd04)
f325b2
---
f325b2
 sw/source/core/layout/trvlfrm.cxx | 2 +-
f325b2
 1 file changed, 1 insertion(+), 1 deletion(-)
f325b2
f325b2
diff --git a/sw/source/core/layout/trvlfrm.cxx b/sw/source/core/layout/trvlfrm.cxx
f325b2
index 65aa24f69e72..aec74f35feb3 100644
f325b2
--- a/sw/source/core/layout/trvlfrm.cxx
f325b2
+++ b/sw/source/core/layout/trvlfrm.cxx
f325b2
@@ -2019,7 +2019,7 @@ void SwRootFrm::CalcFrmRects(SwShellCrsr &rCrsr)
f325b2
 
f325b2
     SwViewShell *pSh = GetCurrShell();
f325b2
 
f325b2
-    bool bIgnoreVisArea = false;
f325b2
+    bool bIgnoreVisArea = true;
f325b2
     if (pSh)
f325b2
         bIgnoreVisArea = pSh->GetViewOptions()->IsPDFExport() || pSh->isTiledRendering();
f325b2
 
f325b2
-- 
f325b2
2.12.0
f325b2