Kaydet (Commit) 48b1d2b1 authored tarafından Eike Rathke's avatar Eike Rathke

use SvXMLExport::getDefaultVersion()

... instead of SvtSaveOptions().GetODFDefaultVersion()

Change-Id: Ib94fa3edc395f6ef39f3be33c5cdf4f4e2da32b4
üst 4c414d3b
...@@ -669,7 +669,7 @@ void SvXMLNumFmtExport::WriteScientificElement_Impl( ...@@ -669,7 +669,7 @@ void SvXMLNumFmtExport::WriteScientificElement_Impl(
if ( nExpInterval >= 0 ) if ( nExpInterval >= 0 )
{ {
// Export only for 1.2 with extensions or 1.3 and later. // Export only for 1.2 with extensions or 1.3 and later.
SvtSaveOptions::ODFDefaultVersion eVersion = SvtSaveOptions().GetODFDefaultVersion(); SvtSaveOptions::ODFDefaultVersion eVersion = rExport.getDefaultVersion();
if (eVersion > SvtSaveOptions::ODFVER_012) if (eVersion > SvtSaveOptions::ODFVER_012)
{ {
// TODO: change this once the fouled up ODFVER_LATEST is a real // TODO: change this once the fouled up ODFVER_LATEST is a real
...@@ -1589,7 +1589,7 @@ void SvXMLNumFmtExport::ExportPart_Impl( const SvNumberformat& rFormat, sal_uInt ...@@ -1589,7 +1589,7 @@ void SvXMLNumFmtExport::ExportPart_Impl( const SvNumberformat& rFormat, sal_uInt
break; break;
case NF_SYMBOLTYPE_STAR : case NF_SYMBOLTYPE_STAR :
// export only if ODF 1.2 extensions are enabled // export only if ODF 1.2 extensions are enabled
if( SvtSaveOptions().GetODFDefaultVersion() > SvtSaveOptions::ODFVER_012 ) if( rExport.getDefaultVersion() > SvtSaveOptions::ODFVER_012 )
{ {
if ( pElemStr && pElemStr->getLength() > 1 ) if ( pElemStr && pElemStr->getLength() > 1 )
WriteRepeatedElement_Impl( (*pElemStr)[1] ); WriteRepeatedElement_Impl( (*pElemStr)[1] );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment