summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-09-10 04:16:06 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-09-10 04:55:44 +0200
commit694419d813c14f6135aa4463d77f72c3a24a5cc5 (patch)
tree761d8ee4d53bb3d8b97c524ec4f4efcb87b2fc68 /oox
parentc70d012935659606591ad50346c252bb234994ea (diff)
Related: tdf#93676 in msword chart appears with axis positioned between ticks
Change-Id: Ibd16d255a45a220faf7681a74785549c32969f78
Diffstat (limited to 'oox')
-rw-r--r--oox/source/export/chartexport.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/oox/source/export/chartexport.cxx b/oox/source/export/chartexport.cxx
index 2aab1aeeab1b..7cbd8a9cf8e5 100644
--- a/oox/source/export/chartexport.cxx
+++ b/oox/source/export/chartexport.cxx
@@ -2896,6 +2896,17 @@ void ChartExport::_exportAxis(
FSEND );
}
+ // TODO: MSO does not support random axis cross position for
+ // 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)
+ {
+ pFS->singleElement( FSNS( XML_c, XML_crossBetween ),
+ XML_val, "midCat",
+ FSEND );
+ }
+
// majorUnit
bool bAutoStepMain = false;
if(GetProperty( xAxisProp, "AutoStepMain" ) )