diff options
-rw-r--r-- | sw/source/uibase/utlui/content.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx index deb11ce9160f..91ce874b1553 100644 --- a/sw/source/uibase/utlui/content.cxx +++ b/sw/source/uibase/utlui/content.cxx @@ -3705,9 +3705,9 @@ void SwContentTree::UpdateTracking() // footnotes and endnotes if (SwContentAtPos aContentAtPos(IsAttrAtPos::Ftn); m_pActiveShell->GetContentAtPos(m_pActiveShell->GetCursorDocPos(), aContentAtPos) - && !(m_bIsRoot - && (m_nRootType != ContentTypeId::FOOTNOTE - && m_nRootType != ContentTypeId::ENDNOTE))) + && aContentAtPos.pFndTextAttr && + !(m_bIsRoot && (m_nRootType != ContentTypeId::FOOTNOTE && + m_nRootType != ContentTypeId::ENDNOTE))) { if (!aContentAtPos.pFndTextAttr->GetFootnote().IsEndNote()) { |