From 271bdc3469b694c113e4449750866dee032e2d34 Mon Sep 17 00:00:00 2001 From: Balazs Varga Date: Thu, 7 Nov 2019 10:31:49 +0100 Subject: tdf#128633 Chart OOXML Export: Fix position of bar in charts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix export of c:crossBetween tag if the category axis is deleted. Regression from commit: e0b0502516a10181bbd1737b93b38b2bba4c98e8 (tdf#128016 Chart OOXML Import: fix duplicated category labels) Change-Id: I46ab45f3ba4f3d0fdde3ddf017a7f512b6e2e403 Reviewed-on: https://gerrit.libreoffice.org/82194 Tested-by: Jenkins Reviewed-by: László Németh Tested-by: László Németh --- oox/source/export/chartexport.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'oox') diff --git a/oox/source/export/chartexport.cxx b/oox/source/export/chartexport.cxx index c4bf38eff9ef..040014912b32 100644 --- a/oox/source/export/chartexport.cxx +++ b/oox/source/export/chartexport.cxx @@ -251,7 +251,7 @@ static bool lcl_isCategoryAxisShifted(const Reference< chart2::XChartDocument >& if( xAxis.is()) { chart2::ScaleData aScaleData = xAxis->getScaleData(); - if( aScaleData.Categories.is() ) + if( aScaleData.AxisType == AXIS_PRIMARY_Y ) { isCategoryPositionShifted = aScaleData.ShiftedCategoryPosition; break; -- cgit