summaryrefslogtreecommitdiff
path: root/sw/source/filter/ww8
diff options
context:
space:
mode:
authorVasily Melenchuk <vasily.melenchuk@cib.de>2021-09-27 19:00:49 +0300
committerMichael Stahl <michael.stahl@allotropia.de>2021-10-01 12:09:02 +0200
commit732b3fd5bdf17f09b5f9304b470b741e5483eab1 (patch)
treea6d4f6ce91a89f16b163de589232e31dbe17baca /sw/source/filter/ww8
parent5836cd37b6d292b1b4e72d5a5a6dc9029c5cf730 (diff)
tdf#144437: rtf export: bookmark position is written to current run
Bookmark was written to not current position thus did appear not at desired place inside paragraph. Change-Id: I917f74c95666efd38c5befeb927b75783915b2e8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122722 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'sw/source/filter/ww8')
-rw-r--r--sw/source/filter/ww8/rtfattributeoutput.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/filter/ww8/rtfattributeoutput.cxx b/sw/source/filter/ww8/rtfattributeoutput.cxx
index 907c035b5ffc..b821d632d18a 100644
--- a/sw/source/filter/ww8/rtfattributeoutput.cxx
+++ b/sw/source/filter/ww8/rtfattributeoutput.cxx
@@ -1724,17 +1724,17 @@ void RtfAttributeOutput::WriteBookmarks_Impl(std::vector<OUString>& rStarts,
{
for (const auto& rStart : rStarts)
{
- m_aRun->append("{" OOO_STRING_SVTOOLS_RTF_IGNORE OOO_STRING_SVTOOLS_RTF_BKMKSTART " ");
- m_aRun->append(msfilter::rtfutil::OutString(rStart, m_rExport.GetCurrentEncoding()));
- m_aRun->append('}');
+ m_aRunText->append("{" OOO_STRING_SVTOOLS_RTF_IGNORE OOO_STRING_SVTOOLS_RTF_BKMKSTART " ");
+ m_aRunText->append(msfilter::rtfutil::OutString(rStart, m_rExport.GetCurrentEncoding()));
+ m_aRunText->append('}');
}
rStarts.clear();
for (const auto& rEnd : rEnds)
{
- m_aRun->append("{" OOO_STRING_SVTOOLS_RTF_IGNORE OOO_STRING_SVTOOLS_RTF_BKMKEND " ");
- m_aRun->append(msfilter::rtfutil::OutString(rEnd, m_rExport.GetCurrentEncoding()));
- m_aRun->append('}');
+ m_aRunText->append("{" OOO_STRING_SVTOOLS_RTF_IGNORE OOO_STRING_SVTOOLS_RTF_BKMKEND " ");
+ m_aRunText->append(msfilter::rtfutil::OutString(rEnd, m_rExport.GetCurrentEncoding()));
+ m_aRunText->append('}');
}
rEnds.clear();
}