summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-05-05 19:31:03 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-05-05 19:44:26 +0200
commita4b6f261489817737fd974dee123ab6b76a66c49 (patch)
treeb0bc422f2bc03ff4f063e3cd66d6b0ffff8c54d5 /oox
parentd28d25d0903f94ce9485c04e72400e493db44618 (diff)
another validation error in chart OOXML export
Change-Id: I2edd5cb877fdf66926483c866382480f7ae3d36f
Diffstat (limited to 'oox')
-rw-r--r--oox/source/export/chartexport.cxx17
1 files changed, 9 insertions, 8 deletions
diff --git a/oox/source/export/chartexport.cxx b/oox/source/export/chartexport.cxx
index 3f65ef20a1de..2d1b930404c8 100644
--- a/oox/source/export/chartexport.cxx
+++ b/oox/source/export/chartexport.cxx
@@ -2200,14 +2200,6 @@ void ChartExport::_exportAxis(
FSEND );
}
- if( nAxisType == XML_catAx )
- {
- // FIXME: seems not support? lblAlgn
- const char* sLblAlgn = "ctr";
- pFS->singleElement( FSNS( XML_c, XML_lblAlgn ),
- XML_val, sLblAlgn,
- FSEND );
- }
if( ( nAxisType == XML_catAx )
|| ( nAxisType == XML_dateAx ) )
{
@@ -2217,6 +2209,15 @@ void ChartExport::_exportAxis(
XML_val, isAuto,
FSEND );
+ if( nAxisType == XML_catAx )
+ {
+ // FIXME: seems not support? lblAlgn
+ const char* sLblAlgn = "ctr";
+ pFS->singleElement( FSNS( XML_c, XML_lblAlgn ),
+ XML_val, sLblAlgn,
+ FSEND );
+ }
+
// FIXME: seems not support? lblOffset
sal_Int32 nLblOffset = 100;
pFS->singleElement( FSNS( XML_c, XML_lblOffset ),