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 <raykowj@gmail.com>
This commit is contained in:
Jim Raykowski
2025-11-14 21:14:08 +01:00
parent 0c29ba0c46
commit 97136d76e0
+2 -2
View File
@@ -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())
{