summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2014-06-25 21:58:47 +0200
committerJulien Nabet <serval2412@yahoo.fr>2014-06-25 21:58:47 +0200
commit7bd94d73ec56622685d0e23f8b5133ba110524be (patch)
tree21568a3ff4c8d51dc8972415bf09657637b53530
parente9ef350315a29f15c8c78eb86a00a6de22c75c21 (diff)
Resolves fdo#54155: Crash when playing with a Group inside a Group
Change-Id: I89c80fca1cdc8bc88172eaf8057141d5e42a06dc
-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 6ff58cc8c322..1d7ac9baac29 100644
--- a/sw/source/core/frmedt/feshview.cxx
+++ b/sw/source/core/frmedt/feshview.cxx
@@ -1136,7 +1136,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 );