summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2015-01-25 05:38:09 +0100
committerMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2015-02-19 04:17:35 +0100
commit52f4d152af4a0cad31ca6da43ae9e8fc55688aab (patch)
treeb33d8887a950a6c7f800f7ea6251059a3bb61934 /oox
parent5fb41ae3920cd635fa42057e1623aa21bcb53167 (diff)
there is no x error bar for bar charts, related fdo#66455
e.g. fdo#66455-1.ods exported to OOXML Change-Id: I81c65071cef820076b3f4788b45152cb48eb608d
Diffstat (limited to 'oox')
-rw-r--r--oox/source/export/chartexport.cxx12
1 files changed, 8 insertions, 4 deletions
diff --git a/oox/source/export/chartexport.cxx b/oox/source/export/chartexport.cxx
index 5cd30b2b7bf5..94146804e2d9 100644
--- a/oox/source/export/chartexport.cxx
+++ b/oox/source/export/chartexport.cxx
@@ -1776,10 +1776,14 @@ void ChartExport::exportSeries( Reference< chart2::XChartType > xChartType, sal_
xSeriesPropSet->getPropertyValue("ErrorBarY") >>= xErrorBarYProps;
if(xErrorBarYProps.is())
exportErrorBar(xErrorBarYProps, true);
- Reference< XPropertySet > xErrorBarXProps;
- xSeriesPropSet->getPropertyValue("ErrorBarX") >>= xErrorBarXProps;
- if(xErrorBarXProps.is())
- exportErrorBar(xErrorBarXProps, false);
+ if (eChartType != chart::TYPEID_BAR &&
+ eChartType != chart::TYPEID_HORBAR)
+ {
+ Reference< XPropertySet > xErrorBarXProps;
+ xSeriesPropSet->getPropertyValue("ErrorBarX") >>= xErrorBarXProps;
+ if(xErrorBarXProps.is())
+ exportErrorBar(xErrorBarXProps, false);
+ }
}
// export categories