summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-06-02 15:11:43 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-06-02 16:59:58 +0100
commit074079b9093b0b393fb7308db03ee91e5f081d67 (patch)
tree47f86dfb2da7675ec7399e62a65213809efd73a9 /sw
parent6fa618722e4c4546e6ad429883d380c9fc313a0f (diff)
coverity#1219786 Dereference after null check
Change-Id: I95608ce08b9fffada10bc1a1f6903b50aa78fe9a
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/doc/textboxhelper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/doc/textboxhelper.cxx b/sw/source/core/doc/textboxhelper.cxx
index e8411da9bc04..b732af148171 100644
--- a/sw/source/core/doc/textboxhelper.cxx
+++ b/sw/source/core/doc/textboxhelper.cxx
@@ -226,7 +226,7 @@ Rectangle SwTextBoxHelper::getTextRectangle(SwFrmFmt* pShape, bool bAbsolute)
xLockable->setActionLocks(nLocks);
}
- if (!bAbsolute)
+ if (!bAbsolute && pCustomShape)
{
// Relative, so count the logic (reference) rectangle, see the EnhancedCustomShape2d ctor.
Point aPoint(pCustomShape->GetSnapRect().Center());