summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2017-01-18 09:25:55 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2017-01-18 13:04:18 +0000
commit1281bd5d87361fa516cdf247b055aeb4bb5e13fb (patch)
tree4ee51b57302b03cf5be3e3113a50f0b161f5ca4d
parente3c1c65b39fb4740e416de9e2e1963d8249c8442 (diff)
tdf#104181 related: don't throw on this document
Change-Id: I53abf3267e1a75e944de82222c6ea80a72de0e7e Reviewed-on: https://gerrit.libreoffice.org/33245 Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> Tested-by: Mike Kaganski <mike.kaganski@collabora.com>
-rw-r--r--sw/source/core/layout/flowfrm.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/source/core/layout/flowfrm.cxx b/sw/source/core/layout/flowfrm.cxx
index ffa8168f1c9a..6b831dacb311 100644
--- a/sw/source/core/layout/flowfrm.cxx
+++ b/sw/source/core/layout/flowfrm.cxx
@@ -1800,6 +1800,9 @@ bool SwFlowFrame::MoveFwd( bool bMakePage, bool bPageBreak, bool bMoveAlways )
{
//!!!!MoveFootnoteCntFwd might need to be updated as well.
SwFootnoteBossFrame *pOldBoss = m_rThis.FindFootnoteBossFrame();
+ assert(pOldBoss);
+ if (!pOldBoss)
+ return false;
if (m_rThis.IsInFootnote())
{
if (!m_rThis.IsContentFrame())