diff options
-rw-r--r-- | sw/source/filter/xml/xmlexp.cxx | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/sw/source/filter/xml/xmlexp.cxx b/sw/source/filter/xml/xmlexp.cxx index 4887e14075fb..0fd2296e97e8 100644 --- a/sw/source/filter/xml/xmlexp.cxx +++ b/sw/source/filter/xml/xmlexp.cxx @@ -26,6 +26,7 @@ #include <com/sun/star/xforms/XFormsSupplier.hpp> #include <o3tl/any.hxx> +#include <officecfg/Office/Common.hxx> #include <sax/tools/converter.hxx> #include <svx/svdmodel.hxx> #include <svx/svdpage.hxx> @@ -46,6 +47,7 @@ #include <swmodule.hxx> #include <docsh.hxx> #include <viewsh.hxx> +#include <rootfrm.hxx> #include <docstat.hxx> #include <swerror.h> #include <unotext.hxx> @@ -276,7 +278,15 @@ ErrCode SwXMLExport::exportDoc( enum XMLTokenEnum eClass ) } } RedlineFlags nRedlineFlags = RedlineFlags::NONE; - m_bSavedShowChanges = IDocumentRedlineAccess::IsShowChanges( pDoc->getIDocumentRedlineAccess().GetRedlineFlags() ); + if (officecfg::Office::Common::Misc::ExperimentalMode::get(getComponentContext())) + { + SwRootFrame const*const pLayout(m_pDoc->getIDocumentLayoutAccess().GetCurrentLayout()); + m_bSavedShowChanges = pLayout == nullptr || !pLayout->IsHideRedlines(); + } + else + { + m_bSavedShowChanges = IDocumentRedlineAccess::IsShowChanges( pDoc->getIDocumentRedlineAccess().GetRedlineFlags() ); + } if( bSaveRedline ) { // now save and switch redline mode |