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:
@@ -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())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user