diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2024-03-25 07:47:15 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-03-26 15:35:40 +0100 |
commit | dd873175affb7926befb1b8a0a881540d00160df (patch) | |
tree | 47c1b2326dd7ba89ccf9d029b4da1d1a26eff343 /sw/inc | |
parent | 2984dd49fb9fb2f8d3d56fba0db34a7b95666ce1 (diff) |
try to use more reliable mechanism in AddLinkTarget
The commit that introduces this code says
commit 89ffe6149a0e14bcde89d7981362aa1556849ab0
Author: Tünde Tóth <tundeth@gmail.com>
Date: Wed Sep 18 10:13:50 2019 +0200
tdf#127605 DOCX export: fix internal hyperlinks to image target
jumping to the paragraph anchored by the image as a workaround.
But using the SwNodeIndex ring to do this only works by accident,
there is no guarantee that the SwNodeIndex is organised in any
way at all.
Change-Id: I9f886522ddf83b6799da9dd3d1f27e4b6c44bdc0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165264
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/ndindex.hxx | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sw/inc/ndindex.hxx b/sw/inc/ndindex.hxx index 775546597500..5ebc32846739 100644 --- a/sw/inc/ndindex.hxx +++ b/sw/inc/ndindex.hxx @@ -119,7 +119,6 @@ public: const SwNodes& GetNodes() const { return m_pNode->GetNodes(); } SwNodes& GetNodes() { return m_pNode->GetNodes(); } - const SwNodeIndex* GetNext() const { return GetNextInRing(); } SwNode& GetNode() const { return *m_pNode; } }; |