sw/source/core/tox/tox.cxx |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

New commits:
commit c4bbd05d506c14a29cfb07f118f710c11958d83c
Author:     Andreas Heinisch <andreas.heini...@yahoo.de>
AuthorDate: Tue Jul 18 09:04:56 2023 +0200
Commit:     Andreas Heinisch <andreas.heini...@yahoo.de>
CommitDate: Tue Jul 18 10:52:06 2023 +0200

    tdf#156325 - Index of tables: support ctrl + click on an item
    
    Change-Id: I6de76d946ab0810cc3c2ba9fbec5d3c1db043a1e
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154574
    Tested-by: Jenkins
    Reviewed-by: Andreas Heinisch <andreas.heini...@yahoo.de>

diff --git a/sw/source/core/tox/tox.cxx b/sw/source/core/tox/tox.cxx
index d87e78c002fd..04f43e5d41f8 100644
--- a/sw/source/core/tox/tox.cxx
+++ b/sw/source/core/tox/tox.cxx
@@ -350,7 +350,9 @@ SwForm::SwForm( TOXTypes eTyp ) // #i21237#
     }
 
     SwFormTokens aTokens;
-    if (TOX_CONTENT == m_eType || TOX_ILLUSTRATIONS == m_eType )
+    const bool bNeedsLink
+        = TOX_CONTENT == m_eType || TOX_ILLUSTRATIONS == m_eType || TOX_TABLES 
== m_eType;
+    if (bNeedsLink)
     {
         SwFormToken aLinkStt (TOKEN_LINK_START);
         aLinkStt.sCharStyleName = SwResId(STR_POOLCHR_TOXJUMP);
@@ -378,7 +380,7 @@ SwForm::SwForm( TOXTypes eTyp ) // #i21237#
         aTokens.emplace_back(TOKEN_PAGE_NUMS);
     }
 
-    if (TOX_CONTENT == m_eType || TOX_ILLUSTRATIONS == m_eType)
+    if (bNeedsLink)
         aTokens.emplace_back(TOKEN_LINK_END);
 
     SetTemplate(0, SwResId(*pPoolId++));

Reply via email to