summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-01-28 13:35:53 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-01-28 14:30:40 +0000
commit3acf5f61b009160b89491d75ab1153798f653563 (patch)
tree243363d324761e4e679eb0f837920a273c3a5c4e /svx
parentbaa57e5e50805a90519e2e480cfb3e0a6c2afee9 (diff)
coverity#705899 Dereference before null check
Change-Id: I6938bc2bbedbf830f8f35b875b5b071447b8d7d1
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/svdhdl.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/svx/source/svdraw/svdhdl.cxx b/svx/source/svdraw/svdhdl.cxx
index c2f824f779b0..64b56e57c0e0 100644
--- a/svx/source/svdraw/svdhdl.cxx
+++ b/svx/source/svdraw/svdhdl.cxx
@@ -1678,11 +1678,10 @@ void ImpTextframeHdl::CreateB2dIAObject()
500,
true); // allow animation; the Handle is not shown at text edit time
- pNewOverlayObject->setHittable(false);
-
// OVERLAYMANAGER
if(pNewOverlayObject)
{
+ pNewOverlayObject->setHittable(false);
xManager->add(*pNewOverlayObject);
maOverlayGroup.append(*pNewOverlayObject);
}