diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-12-15 23:00:42 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-12-19 03:20:40 +0100 |
commit | b60bb82a0a1d79b0c967fc8cc405ba3d9394eb4a (patch) | |
tree | 3ea714fd82e91d791522b4cdec1ec7654f0268c8 /oox | |
parent | 164a8c409c2f070ee51ca4258585cf0c8579af51 (diff) |
fix an OOXML chart validation error
Change-Id: Ic91f6179b663afb59700f85ea48720dc9b14f372
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/export/chartexport.cxx | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/oox/source/export/chartexport.cxx b/oox/source/export/chartexport.cxx index 3447f2d074e8..53ca88d5e8c0 100644 --- a/oox/source/export/chartexport.cxx +++ b/oox/source/export/chartexport.cxx @@ -2037,15 +2037,6 @@ void ChartExport::_exportAxis( pFS->startElement( FSNS( XML_c, XML_scaling ), FSEND ); - // orientation: minMax, maxMin - sal_Bool bReverseDirection = sal_False; - if(GetProperty( xAxisProp, "ReverseDirection" ) ) - mAny >>= bReverseDirection; - - const char* orientation = bReverseDirection ? "maxMin":"minMax"; - pFS->singleElement( FSNS( XML_c, XML_orientation ), - XML_val, orientation, - FSEND ); // logBase, min, max if(GetProperty( xAxisProp, "Logarithmic" ) ) { @@ -2060,6 +2051,17 @@ void ChartExport::_exportAxis( FSEND ); } } + + // orientation: minMax, maxMin + sal_Bool bReverseDirection = sal_False; + if(GetProperty( xAxisProp, "ReverseDirection" ) ) + mAny >>= bReverseDirection; + + const char* orientation = bReverseDirection ? "maxMin":"minMax"; + pFS->singleElement( FSNS( XML_c, XML_orientation ), + XML_val, orientation, + FSEND ); + sal_Bool bAutoMax = sal_False; if(GetProperty( xAxisProp, "AutoMax" ) ) mAny >>= bAutoMax; |