summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Raykowski <raykowj@gmail.com>2024-07-09 13:22:52 -0800
committerJim Raykowski <raykowj@gmail.com>2024-07-10 17:27:34 +0200
commit8afc4d10f917cfb5faadac0a1dd8856373693630 (patch)
tree233b607f7d3187b82c92febb380a621c61fe619c
parent0862a12208919f0c8171a4dd4ff356d8833b9221 (diff)
tdf#161717 Enhancement to identify click on tracked change
This is a followup that fixes tracked change comments are not always highlighted in the Manage Changes dialog/sidebar panel when the anchor triangle is clicked on in the document. Change-Id: I0bf8bebf8133777e79101e908afd268ab44c0d68 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170258 Tested-by: Jenkins Reviewed-by: Jim Raykowski <raykowj@gmail.com>
-rw-r--r--sw/source/uibase/docvw/edtwin.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/uibase/docvw/edtwin.cxx b/sw/source/uibase/docvw/edtwin.cxx
index 1abf300f3d86..81064a94a8f7 100644
--- a/sw/source/uibase/docvw/edtwin.cxx
+++ b/sw/source/uibase/docvw/edtwin.cxx
@@ -5366,8 +5366,7 @@ void SwEditWin::MouseButtonUp(const MouseEvent& rMEvt)
// tdf#161717 - Track changes: Clicking on change in document should highlight related change
// in "Manage Changes" window/sidebar
- if (SwContentAtPos aRedlineContentAtPos(IsAttrAtPos::Redline);
- rSh.GetContentAtPos(aDocPt, aRedlineContentAtPos))
+ if (m_rView.GetWrtShell().GetCurrRedline())
{
SwDocShell* pDocSh = m_rView.GetDocShell();
if (pDocSh)