[Libreoffice-commits] core.git: oox/source

Markus Mohrhard markus.mohrhard at collabora.co.uk
Wed Feb 18 19:18:30 PST 2015


 oox/source/export/chartexport.cxx |   12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

New commits:
commit 52f4d152af4a0cad31ca6da43ae9e8fc55688aab
Author: Markus Mohrhard <markus.mohrhard at collabora.co.uk>
Date:   Sun Jan 25 05:38:09 2015 +0100

    there is no x error bar for bar charts, related fdo#66455
    
    e.g. fdo#66455-1.ods exported to OOXML
    
    Change-Id: I81c65071cef820076b3f4788b45152cb48eb608d

diff --git a/oox/source/export/chartexport.cxx b/oox/source/export/chartexport.cxx
index 5cd30b2..9414680 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


More information about the Libreoffice-commits mailing list