diff options
author | Tünde Tóth <tundeth@gmail.com> | 2019-09-24 14:29:44 +0200 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2019-09-30 13:00:09 +0200 |
commit | 97fba7ebf350adcec6baa6c4a863d058fb90406a (patch) | |
tree | 66648244e3d3a60dcfc972b346aaaefc89b58a21 /sw/source/filter/ww8/wrtww8.cxx | |
parent | a0f46953883aadab1ae7cae5641d3fc1a6089f81 (diff) |
tdf#127733 DOCX export: fix internal hyperlinks to chart target
Hyperlinks to internal chart targets didn't work after export.
Change-Id: I724c6af8fd7f1961260b82331b9f62d8cbd88f25
Reviewed-on: https://gerrit.libreoffice.org/79456
Tested-by: Jenkins
Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'sw/source/filter/ww8/wrtww8.cxx')
-rw-r--r-- | sw/source/filter/ww8/wrtww8.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sw/source/filter/ww8/wrtww8.cxx b/sw/source/filter/ww8/wrtww8.cxx index 222466d8eb1e..bec217c60ddb 100644 --- a/sw/source/filter/ww8/wrtww8.cxx +++ b/sw/source/filter/ww8/wrtww8.cxx @@ -3104,6 +3104,17 @@ void MSWordExportBase::AddLinkTarget(const OUString& rURL) noBookmark = true; } } + else if( sCmp == "ole" ) + { + SwNodeIndex* pIdx; + OUString aName(BookmarkToWriter(aURL.copy(0, nPos))); + const SwFlyFrameFormat* pFormat = m_pDoc->FindFlyByName(aName, SwNodeType::Ole); + if (pFormat && nullptr != (pIdx = const_cast<SwNodeIndex*>(pFormat->GetContent().GetContentIdx()))) + { + nIdx = pIdx->GetNext()->GetIndex(); + noBookmark = true; + } + } if (noBookmark) { aBookmarkPair aImplicitBookmark; |