summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/sdrpagewindow.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-01-28 13:38:47 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-01-28 14:30:41 +0000
commitd6546c5da8e267c67245fe18a5d6970e65f28f21 (patch)
tree9d73583c52fd86dd27cac834f85b248842ea7d9b /svx/source/svdraw/sdrpagewindow.cxx
parent0ae60c3c3580bcca595e0e6e277be4651076d3bd (diff)
coverity#705897 Dereference before null check
Change-Id: I947abe661c0e85a65d915422f9d800256167d639
Diffstat (limited to 'svx/source/svdraw/sdrpagewindow.cxx')
-rw-r--r--svx/source/svdraw/sdrpagewindow.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/svdraw/sdrpagewindow.cxx b/svx/source/svdraw/sdrpagewindow.cxx
index 2f5d2cd83acf..6c479b8de77e 100644
--- a/svx/source/svdraw/sdrpagewindow.cxx
+++ b/svx/source/svdraw/sdrpagewindow.cxx
@@ -337,7 +337,7 @@ void SdrPageWindow::RedrawLayer(const SdrLayerID* pId, sdr::contact::ViewObjectC
// find out if we are painting the ControlLayer
const SdrLayerAdmin& rLayerAdmin = rModel.GetLayerAdmin();
const SdrLayerID nControlLayerId = rLayerAdmin.GetLayerID(rLayerAdmin.GetControlLayerName(), sal_False);
- const bool bControlLayerProcessingActive(pId && nControlLayerId == *pId);
+ const bool bControlLayerProcessingActive(nControlLayerId == *pId);
// create PaintInfoRec, use Rectangle only temporarily
const Region& rRegion = GetPaintWindow().GetRedrawRegion();