diff options
-rw-r--r-- | sw/source/core/layout/frmtool.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sw/source/core/layout/frmtool.cxx b/sw/source/core/layout/frmtool.cxx index a9ac9b7c6ea5..73683a400219 100644 --- a/sw/source/core/layout/frmtool.cxx +++ b/sw/source/core/layout/frmtool.cxx @@ -547,8 +547,11 @@ SwLayNotify::~SwLayNotify() if ( bPos && pLay->Lower() && !IsLowersComplete() ) { pLay->Lower()->InvalidatePos(); - if(pLay->Lower()->IsFootnoteFrame()) - static_cast<SwFootnoteFrame*>(pLay->Lower())->Lower()->InvalidatePos(); + SwFootnoteFrame* pFtnFrame = pLay->Lower()->IsFootnoteFrame() ? + static_cast<SwFootnoteFrame*>(pLay->Lower()) : nullptr; + SwFrame* pFtnLower = pFtnFrame ? pFtnFrame->Lower() : nullptr; + if (pFtnLower) + pFtnLower->InvalidatePos(); } if ( bPrtPos ) |