Kaydet (Commit) 830650fa authored tarafından Markus Mohrhard's avatar Markus Mohrhard

don't use ODFVER_LATEST instead of ODFVER_012

üst 7caafb6c
...@@ -2740,7 +2740,7 @@ void ScXMLExport::WriteTable(sal_Int32 nTable, const Reference<sheet::XSpreadshe ...@@ -2740,7 +2740,7 @@ void ScXMLExport::WriteTable(sal_Int32 nTable, const Reference<sheet::XSpreadshe
CheckAttrList(); CheckAttrList();
if ( pDoc && pDoc->GetSheetEvents( static_cast<SCTAB>(nTable) ) && if ( pDoc && pDoc->GetSheetEvents( static_cast<SCTAB>(nTable) ) &&
getDefaultVersion() == SvtSaveOptions::ODFVER_LATEST ) getDefaultVersion() >= SvtSaveOptions::ODFVER_012 )
{ {
// store sheet events // store sheet events
uno::Reference<document::XEventsSupplier> xSupplier(xTable, uno::UNO_QUERY); uno::Reference<document::XEventsSupplier> xSupplier(xTable, uno::UNO_QUERY);
...@@ -4305,7 +4305,7 @@ sal_uInt32 ScXMLExport::exportDoc( enum XMLTokenEnum eClass ) ...@@ -4305,7 +4305,7 @@ sal_uInt32 ScXMLExport::exportDoc( enum XMLTokenEnum eClass )
// sheet events use officeooo namespace // sheet events use officeooo namespace
if( (getExportFlags() & EXPORT_CONTENT) != 0 && if( (getExportFlags() & EXPORT_CONTENT) != 0 &&
getDefaultVersion() == SvtSaveOptions::ODFVER_LATEST ) getDefaultVersion() >= SvtSaveOptions::ODFVER_012 )
{ {
bool bAnySheetEvents = false; bool bAnySheetEvents = false;
SCTAB nTabCount = pDoc->GetTableCount(); SCTAB nTabCount = pDoc->GetTableCount();
......
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