diff options
author | Jim Raykowski <raykowj@gmail.com> | 2021-09-14 17:26:56 -0800 |
---|---|---|
committer | Jim Raykowski <raykowj@gmail.com> | 2021-09-17 07:34:46 +0200 |
commit | 00eed7d73ba482ff3433afaeb1fb968de515c09d (patch) | |
tree | 906bff9d25e11c08c684848882d92f22ac89b7e0 | |
parent | 36be1ecdc8cc2ef36ff9db0ba8af78b4aeee774e (diff) |
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 <raykowj@gmail.com>
-rw-r--r-- | sw/source/uibase/utlui/content.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
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) |