diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-06-02 15:11:43 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-06-02 16:59:58 +0100 |
commit | 074079b9093b0b393fb7308db03ee91e5f081d67 (patch) | |
tree | 47f86dfb2da7675ec7399e62a65213809efd73a9 /sw/source | |
parent | 6fa618722e4c4546e6ad429883d380c9fc313a0f (diff) |
coverity#1219786 Dereference after null check
Change-Id: I95608ce08b9fffada10bc1a1f6903b50aa78fe9a
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/core/doc/textboxhelper.cxx | 2 |
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()); |