diff options
author | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-02-12 00:39:13 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-02-12 01:01:36 +0100 |
commit | f0d232f7b78edc3a0acff6d2beee97ff8bb2bd94 (patch) | |
tree | 53c4ab986d339dd65c51f1be063b3caedab16dd4 | |
parent | a67f56f78c52161b3934d61848ab9388f75a57a1 (diff) |
prevent invalid OOXML chart files
Change-Id: I2ccf988a26e5c69f4f14547cfea7cb4fb574b317
-rw-r--r-- | oox/source/export/chartexport.cxx | 2 |
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) |