summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@libreoffice.org>2018-02-10 01:33:45 +0100
committerBjoern Michaelsen <bjoern.michaelsen@libreoffice.org>2018-02-10 01:33:45 +0100
commit0fe07050055f54d57f828d6598eb6264aef17a12 (patch)
treeafc6db5be74aa493d80a2a85a1470aacf1da61b5
parent13edc0e3cd13b74ef6f47c6943d8e16635cac51a (diff)
IsFormatInDTOR check
Change-Id: I043e998687d22e0d443d7ffe465413f4361bd7dd
-rw-r--r--sw/source/core/doc/docftn.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/sw/source/core/doc/docftn.cxx b/sw/source/core/doc/docftn.cxx
index d39d399f4274..16055de10806 100644
--- a/sw/source/core/doc/docftn.cxx
+++ b/sw/source/core/doc/docftn.cxx
@@ -188,7 +188,10 @@ void SwEndNoteInfo::SwClientNotify( const SwModify& rModify, const SfxHint& rHin
if( RES_ATTRSET_CHG == nWhich ||
RES_FMT_CHG == nWhich )
{
- SwDoc* pDoc = GetCurrentCharFormat(pCharFormat)->GetDoc();
+ auto pFormat = GetCurrentCharFormat(pCharFormat);
+ if(!aDepends.IsListeningTo(pFormat) || pFormat->IsFormatInDTOR())
+ return;
+ SwDoc* pDoc = pFormat->GetDoc();
SwFootnoteIdxs& rFootnoteIdxs = pDoc->GetFootnoteIdxs();
for( size_t nPos = 0; nPos < rFootnoteIdxs.size(); ++nPos )
{