From 00eed7d73ba482ff3433afaeb1fb968de515c09d Mon Sep 17 00:00:00 2001 From: Jim Raykowski Date: Tue, 14 Sep 2021 17:26:56 -0800 Subject: Writer Navigator: Fix category content tracking This patch fixes a tracking bug that causes category content not to be tracked when field content is at the current cursor position in the document. Change-Id: I6fb5c4584cb05205e0c966eef079bd30ee3e6430 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122105 Tested-by: Jenkins Reviewed-by: Jim Raykowski --- sw/source/uibase/utlui/content.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sw/source/uibase/utlui') diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx index 57171cceeb0b..4efaa1b40502 100644 --- a/sw/source/uibase/utlui/content.cxx +++ b/sw/source/uibase/utlui/content.cxx @@ -3392,7 +3392,8 @@ void SwContentTree::UpdateTracking() } // fields - if (SwField* pField = m_pActiveShell->GetCurField()) + if (SwField* pField = m_pActiveShell->GetCurField(); pField && + !(m_bIsRoot && m_nRootType != ContentTypeId::TEXTFIELD)) { OUString sContentType(SwResId(STR_CONTENT_TYPE_TEXTFIELD)); if (pField->GetTypeId() == SwFieldTypesEnum::Postit) -- cgit