summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorAndreas Heinisch <andreas.heinisch@yahoo.de>2023-07-18 09:04:56 +0200
committerAndreas Heinisch <andreas.heinisch@yahoo.de>2023-07-18 10:52:06 +0200
commitc4bbd05d506c14a29cfb07f118f710c11958d83c (patch)
tree1717ab82ada5e0e8467bddb0b8e92c8d66410a30 /sw/source
parent408a51a964d06e86c12d3a938c1295c75eecea63 (diff)
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.heinisch@yahoo.de>
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/core/tox/tox.cxx6
1 files changed, 4 insertions, 2 deletions
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++));