summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-02-12 00:39:13 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-02-12 01:01:36 +0100
commitf0d232f7b78edc3a0acff6d2beee97ff8bb2bd94 (patch)
tree53c4ab986d339dd65c51f1be063b3caedab16dd4
parenta67f56f78c52161b3934d61848ab9388f75a57a1 (diff)
prevent invalid OOXML chart files
Change-Id: I2ccf988a26e5c69f4f14547cfea7cb4fb574b317
-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 72afb089c404..ed5ea8bc9e46 100644
--- a/oox/source/export/chartexport.cxx
+++ b/oox/source/export/chartexport.cxx
@@ -2390,7 +2390,7 @@ void ChartExport::_exportAxis(
}
sal_Bool bDisplayUnits = sal_False;
- if(GetProperty( xAxisProp, "DisplayUnits" ) )
+ if( nAxisType == XML_valAx && GetProperty( xAxisProp, "DisplayUnits" ) )
{
mAny >>= bDisplayUnits;
if(bDisplayUnits)