prevent invalid OOXML chart files

Change-Id: I2ccf988a26e5c69f4f14547cfea7cb4fb574b317
This commit is contained in:
Markus Mohrhard
2014-02-12 00:39:13 +01:00
committed by Markus Mohrhard
parent a67f56f78c
commit f0d232f7b7

View File

@@ -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)