diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-09-20 12:00:01 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-09-21 09:29:52 +0000 |
commit | 8a2781dde395fc45b943daf5e238ba98276bd405 (patch) | |
tree | 6300427013b2afa385a743f13db3ac45acecfa57 /oox | |
parent | e91e11d091a323d13b480a8bf995e1d70a0f8e89 (diff) |
tdf#96662, only use the crossBetween="midCat" for line and scatter chart
Change-Id: Id2be263daf2c5a9f2d69ed50b79ac029143f02ca
Reviewed-on: https://gerrit.libreoffice.org/29092
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/export/chartexport.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/oox/source/export/chartexport.cxx b/oox/source/export/chartexport.cxx index 3b7994013236..5d373529ce36 100644 --- a/oox/source/export/chartexport.cxx +++ b/oox/source/export/chartexport.cxx @@ -2864,7 +2864,8 @@ void ChartExport::_exportAxis( // category axis, so we ideally need an algorithm that decides // when to map the crossing to the tick mark and when to the // middle of the category - if (nAxisType == XML_valAx) + sal_Int32 nChartType = getChartType(); + if (nAxisType == XML_valAx && (nChartType == chart::TYPEID_LINE || nChartType == chart::TYPEID_SCATTER)) { pFS->singleElement( FSNS( XML_c, XML_crossBetween ), XML_val, "midCat", |