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:35 +0000
commit01ee29125610a0fe4d6dcb080da09e3961f1236a (patch)
tree3d1faf39b46ef85b36c05b8dfddb7edc8ae121ab
parentad9a48a2b31fc97bcfbf50b8f5731f520c281595 (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/9910 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 c13dd1285af3..04f294536c4c 100644
--- a/sw/source/core/frmedt/feshview.cxx
+++ b/sw/source/core/frmedt/feshview.cxx
@@ -1198,7 +1198,7 @@ sal_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 );