[Libreoffice-commits] core.git: sw/source
Jim Raykowski (via logerrit)
logerrit at kemper.freedesktop.org
Fri Sep 17 05:35:18 UTC 2021
sw/source/uibase/utlui/content.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 00eed7d73ba482ff3433afaeb1fb968de515c09d
Author: Jim Raykowski <raykowj at gmail.com>
AuthorDate: Tue Sep 14 17:26:56 2021 -0800
Commit: Jim Raykowski <raykowj at gmail.com>
CommitDate: Fri Sep 17 07:34:46 2021 +0200
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 at gmail.com>
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)
More information about the Libreoffice-commits
mailing list