sw/source/uibase/sidebar/QuickFindPanel.cxx |   12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

New commits:
commit 7d216a80fb16083d29fa82ffce127c0ccafe4dcd
Author:     NickWingate <nick.wing...@collabora.com>
AuthorDate: Fri Aug 22 16:09:10 2025 +0100
Commit:     Szymon Kłos <szymon.k...@collabora.com>
CommitDate: Thu Aug 28 09:38:58 2025 +0200

    Mark QuickFind page entries uniquely for online
    
    This way we can identify which entries are results
    and which are page dividers and style respectively.
    
    Signed-off-by: NickWingate <nick.wing...@collabora.com>
    Change-Id: Ie38fc1599dc019d949b14b6b30e07b18a3e16b5a
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190073
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Szymon Kłos <szymon.k...@collabora.com>

diff --git a/sw/source/uibase/sidebar/QuickFindPanel.cxx 
b/sw/source/uibase/sidebar/QuickFindPanel.cxx
index 856b5edec87f..b6e5b2c72625 100644
--- a/sw/source/uibase/sidebar/QuickFindPanel.cxx
+++ b/sw/source/uibase/sidebar/QuickFindPanel.cxx
@@ -615,8 +615,16 @@ void QuickFindPanel::FillSearchFindsList()
             if (xPaM->GetPageNum() != nPage)
             {
                 nPage = xPaM->GetPageNum();
-                OUString sPageEntry(u"-"_ustr + SwResId(ST_PGE) + u" "_ustr
-                                    + OUString::number(nPage));
+                OUString sPageEntry;
+                if (comphelper::LibreOfficeKit::isActive())
+                {
+                    sPageEntry = u"-$#~"_ustr + SwResId(ST_PGE) + u" "_ustr
+                                 + OUString::number(nPage) + u"~#$-"_ustr;
+                }
+                else
+                {
+                    sPageEntry = u"-"_ustr + SwResId(ST_PGE) + u" "_ustr + 
OUString::number(nPage);
+                }
                 m_xSearchFindsList->append(sPageEntry, sPageEntry);
             }
 

Reply via email to