From 45f2e81c98a5b7fe6f021923fd93d20b3c5f3815 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Tue, 21 Apr 2020 18:57:52 +0200 Subject: replace ODFDefaultVersion usage with ODFSaneDefaultVersion Compare with ODFSVER_012 mostly works the same, except for places where namespaces are defined where the ODFSVER_EXTENDED bit should be checked. Change-Id: I86469b763bc2f903632976bc9d6ec04d543d705e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92727 Tested-by: Jenkins Reviewed-by: Michael Stahl --- reportdesign/source/filter/xml/xmlExport.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'reportdesign') diff --git a/reportdesign/source/filter/xml/xmlExport.cxx b/reportdesign/source/filter/xml/xmlExport.cxx index 2d8a9dcc093a..a56333bc7775 100644 --- a/reportdesign/source/filter/xml/xmlExport.cxx +++ b/reportdesign/source/filter/xml/xmlExport.cxx @@ -236,7 +236,7 @@ ORptExport::ORptExport(const Reference< XComponentContext >& _rxContext, OUStrin { GetNamespaceMap_().Add( GetXMLToken(XML_NP_XHTML),GetXMLToken(XML_N_XHTML), XML_NAMESPACE_XHTML ); // loext, needed for paragraphs inside shapes - if (getDefaultVersion() > SvtSaveOptions::ODFVER_012) + if (getSaneDefaultVersion() & SvtSaveOptions::ODFSVER_EXTENDED) { GetNamespaceMap_().Add( GetXMLToken(XML_NP_LO_EXT), GetXMLToken(XML_N_LO_EXT), -- cgit v1.2.3