summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-06-24 14:22:22 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-06-24 14:22:22 +0100
commitfd768eb1d726e63a9c9cad0b245d1603eba6b5d9 (patch)
tree83e4942e94526c0ce7dbdec3c3d7d7b8b2d3c050
parent627955fa21af250e229b5c14cedfb89f00e3a8cd (diff)
Resolves: fdo#38623 imported .doc crashes layout
-rw-r--r--sw/source/core/layout/ftnfrm.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/layout/ftnfrm.cxx b/sw/source/core/layout/ftnfrm.cxx
index 8eb2418b40..9f6927797b 100644
--- a/sw/source/core/layout/ftnfrm.cxx
+++ b/sw/source/core/layout/ftnfrm.cxx
@@ -2678,7 +2678,7 @@ void SwPageFrm::UpdateFtnNum()
SwPageFrm* pPage = pTmpBoss->FindPageFrm();
pFtn = NULL;
lcl_NextFtnBoss( pTmpBoss, pPage, sal_False );
- SwFtnContFrm *pCont = pTmpBoss->FindNearestFtnCont();
+ SwFtnContFrm *pCont = pTmpBoss ? pTmpBoss->FindNearestFtnCont() : NULL;
if ( pCont )
pFtn = (SwFtnFrm*)pCont->Lower();
}