summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2014-06-25 21:58:47 +0200
committerCaolán McNamara <caolanm@redhat.com>2014-06-26 15:40:20 +0000
commit44ae2ff6d2271949b2a4d22d017003f948b6aa2a (patch)
tree44c6775ad277fb390229ed40869f936a5a9af2a7
parent3a692cb2c8807ea587687de18067fe074a15d0aa (diff)
Resolves fdo#54155: Crash when playing with a Group inside a Group
Cherry-picked from 7bd94d73ec56622685d0e23f8b5133ba110524be Change-Id: I89c80fca1cdc8bc88172eaf8057141d5e42a06dc Reviewed-on: https://gerrit.libreoffice.org/9909 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sw/source/core/frmedt/feshview.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/frmedt/feshview.cxx b/sw/source/core/frmedt/feshview.cxx
index 03d3a39b9977..0513275d9bc4 100644
--- a/sw/source/core/frmedt/feshview.cxx
+++ b/sw/source/core/frmedt/feshview.cxx
@@ -1117,7 +1117,7 @@ bool SwFEShell::ShouldObjectBeSelected(const Point& rPt)
// Don't select header / footer objects in body edition and vice-versa
SwContact* pContact = static_cast<SwContact*>(pObj->GetUserCall());
- if ( !pContact->ObjAnchoredAtPage() )
+ if (pContact && !pContact->ObjAnchoredAtPage() )
{
const SwPosition& rPos = pContact->GetCntntAnchor();
bool bInHdrFtr = GetDoc()->IsInHeaderFooter( rPos.nNode );