summaryrefslogtreecommitdiff
path: root/sw/source/filter/xml/wrtxml.cxx
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2018-12-17 21:46:13 +0100
committerMichael Stahl <Michael.Stahl@cib.de>2018-12-18 17:55:30 +0100
commit7f42b4de3a5a72e695da0705ddc7db8bce576901 (patch)
tree0a444829f8b0a36bfca0b3f4d1aa6e5265f93bd2 /sw/source/filter/xml/wrtxml.cxx
parent5bc7fb209c0e6d7c6a46499d8c2e4d7abaa87bd7 (diff)
sw_redlinehide_4b: ODF export: restore previous redline show flags
There's a test for that, testRedlineFlags() in sw_globalfilter Change-Id: I9c821732910298d74271d95f0bfd0e902af84dbd
Diffstat (limited to 'sw/source/filter/xml/wrtxml.cxx')
-rw-r--r--sw/source/filter/xml/wrtxml.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/filter/xml/wrtxml.cxx b/sw/source/filter/xml/wrtxml.cxx
index 0d5e53d4c319..34e51e8f2ed9 100644
--- a/sw/source/filter/xml/wrtxml.cxx
+++ b/sw/source/filter/xml/wrtxml.cxx
@@ -185,7 +185,8 @@ ErrCode SwXMLWriter::Write_( const uno::Reference < task::XStatusIndicator >& xS
// save show redline mode ...
const OUString sShowChanges("ShowChanges");
- RedlineFlags nRedlineFlags = m_pDoc->getIDocumentRedlineAccess().GetRedlineFlags();
+ RedlineFlags const nOrigRedlineFlags = m_pDoc->getIDocumentRedlineAccess().GetRedlineFlags();
+ RedlineFlags nRedlineFlags(nOrigRedlineFlags);
bool isShowChanges;
if (officecfg::Office::Common::Misc::ExperimentalMode::get(xContext))
{ // TODO: ideally this would be stored per-view...
@@ -420,7 +421,7 @@ ErrCode SwXMLWriter::Write_( const uno::Reference < task::XStatusIndicator >& xS
nRedlineFlags |= RedlineFlags::ShowInsert;
if (officecfg::Office::Common::Misc::ExperimentalMode::get(xContext))
{
- nRedlineFlags |= RedlineFlags::ShowDelete;
+ nRedlineFlags |= nOrigRedlineFlags & RedlineFlags::ShowMask;
}
else
{