summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
Diffstat (limited to 'oox')
-rw-r--r--oox/source/export/chartexport.cxx2
1 files changed, 1 insertions, 1 deletions
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;