summaryrefslogtreecommitdiff
path: root/xmloff/source/chart/SchXMLExport.cxx
diff options
context:
space:
mode:
authorThorsten Behrens <tbehrens@suse.com>2012-06-05 10:52:17 +0200
committerThorsten Behrens <tbehrens@suse.com>2012-06-05 10:54:02 +0200
commit0e9598fa6c388024fa788358e26ef77b5fc3f074 (patch)
tree330a853d9c325e1176e67a46b35c4d2bae182093 /xmloff/source/chart/SchXMLExport.cxx
parentd45c4112b1cac10a46b35e10a8fcfa891840a846 (diff)
Catch more remnant ODFVER_LATEST instances.
This extends commit d0af38eaa029c2f2c2617544c8b6798c463381b9, converting more latest-ver to 1.2-extended cases.
Diffstat (limited to 'xmloff/source/chart/SchXMLExport.cxx')
-rwxr-xr-xxmloff/source/chart/SchXMLExport.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmloff/source/chart/SchXMLExport.cxx b/xmloff/source/chart/SchXMLExport.cxx
index 9cb5bc53c5a3..83a3491f3ede 100755
--- a/xmloff/source/chart/SchXMLExport.cxx
+++ b/xmloff/source/chart/SchXMLExport.cxx
@@ -3119,7 +3119,7 @@ void SchXMLExportHelper_Impl::exportErrorBar( const Reference<beans::XPropertySe
const SvtSaveOptions::ODFDefaultVersion nCurrentVersion( SvtSaveOptions().GetODFDefaultVersion() );
/// Dont export X ErrorBars for older ODF versions.
- if ( !bYError && nCurrentVersion != SvtSaveOptions::ODFVER_LATEST )
+ if ( !bYError && nCurrentVersion <= SvtSaveOptions::ODFVER_012 )
return;
if (xSeriesProp.is())
@@ -3168,7 +3168,7 @@ void SchXMLExportHelper_Impl::exportErrorBar( const Reference<beans::XPropertySe
for( ::std::vector< Reference< chart2::data::XDataSequence > >::const_iterator aIt(
aErrorBarSequences.begin()); aIt != aErrorBarSequences.end(); ++aIt )
{
- if ( nCurrentVersion == SvtSaveOptions::ODFVER_LATEST )
+ if ( nCurrentVersion > SvtSaveOptions::ODFVER_012 )
{
rtl::OUString aRole, aRange;
Reference< beans::XPropertySet > xSeqProp( *aIt, uno::UNO_QUERY_THROW );