summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-09-20 12:00:01 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-09-20 13:30:04 +0000
commitd09bfe6bf10fe16e087c7f30268b72f36c33302e (patch)
tree486217c3714a55284b216bda79835ecfbbce3c7f /oox
parentd9dca1eef91faa710112ffd20a2b2d36b48a9287 (diff)
tdf#96662, only use the crossBetween="midCat" for line and scatter chart
Change-Id: Id2be263daf2c5a9f2d69ed50b79ac029143f02ca Reviewed-on: https://gerrit.libreoffice.org/29080 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'oox')
-rw-r--r--oox/source/export/chartexport.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/oox/source/export/chartexport.cxx b/oox/source/export/chartexport.cxx
index 0dad5d08ded5..bf287d06610a 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",