From 97136d76e06d5d3edd69fbaeb8e7756c6ee71136 Mon Sep 17 00:00:00 2001 From: Jim Raykowski Date: Thu, 13 Nov 2025 22:54:21 -0900 Subject: [PATCH] sw sidebar Find: Fix only the first find is shown as selected Currently when a search is made using the sidebar Find in Writer that results in more than one find, only the first find in the document view is shown as selected. This patch makes all finds in the document view show as selected. Change-Id: Ib68f79be4710725b639bcba83326f84d2214bc39 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194008 Tested-by: Jenkins Reviewed-by: Jim Raykowski --- sw/source/uibase/sidebar/QuickFindPanel.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sw/source/uibase/sidebar/QuickFindPanel.cxx b/sw/source/uibase/sidebar/QuickFindPanel.cxx index ca1c644af67d..702c961e77b6 100644 --- a/sw/source/uibase/sidebar/QuickFindPanel.cxx +++ b/sw/source/uibase/sidebar/QuickFindPanel.cxx @@ -453,11 +453,11 @@ void QuickFindPanel::FillSearchFindsList() nTransliterationFlags |= TransliterationFlags::IGNORE_CASE; aSearchOptions.transliterateFlags = nTransliterationFlags; - m_pWrtShell->SttSelect(); + m_pWrtShell->StartAllAction(); /*sal_Int32 nFound =*/m_pWrtShell->SearchPattern( aSearchOptions, false, SwDocPositions::Start, SwDocPositions::End, FindRanges::InBody | FindRanges::InSelAll, false); - m_pWrtShell->EndSelect(); + m_pWrtShell->EndAllAction(); if (m_pWrtShell->HasMark()) {