diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-06-24 14:22:22 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-06-24 14:22:22 +0100 |
commit | fd768eb1d726e63a9c9cad0b245d1603eba6b5d9 (patch) | |
tree | 83e4942e94526c0ce7dbdec3c3d7d7b8b2d3c050 | |
parent | 627955fa21af250e229b5c14cedfb89f00e3a8cd (diff) |
Resolves: fdo#38623 imported .doc crashes layout
-rw-r--r-- | sw/source/core/layout/ftnfrm.cxx | 2 |
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(); } |