summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorIngrid Halama <iha@openoffice.org>2010-08-27 16:46:26 +0200
committerIngrid Halama <iha@openoffice.org>2010-08-27 16:46:26 +0200
commitd80d6e32933eddd5802e3a62113237d6a4d5c63d (patch)
tree617a6b9c498da8a9bed5438096bb0406f7b348ac /xmloff
parent8412850383ef9569d42c4a8fd4493a7185799d37 (diff)
chart50: #i114149# ODF: export missing attribute dimension to element chart:error-indicator
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/chart/SchXMLExport.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/xmloff/source/chart/SchXMLExport.cxx b/xmloff/source/chart/SchXMLExport.cxx
index 5af8f0f3e5ea..e6f6fc6d9340 100644
--- a/xmloff/source/chart/SchXMLExport.cxx
+++ b/xmloff/source/chart/SchXMLExport.cxx
@@ -3053,6 +3053,10 @@ void SchXMLExportHelper_Impl::exportSeries(
{
// add style name attribute
AddAutoStyleAttribute( aPropertyStates );
+
+ const SvtSaveOptions::ODFDefaultVersion nCurrentVersion( SvtSaveOptions().GetODFDefaultVersion() );
+ if( nCurrentVersion >= SvtSaveOptions::ODFVER_012 )
+ mrExport.AddAttribute( XML_NAMESPACE_CHART, XML_DIMENSION, XML_Y );//#i114149#
SvXMLElementExport( mrExport, XML_NAMESPACE_CHART, XML_ERROR_INDICATOR, sal_True, sal_True );
}
else // autostyles