summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-05-05 19:03:48 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-05-05 19:44:26 +0200
commita927086f9a3c94bb7b6b8edec37ae723a6b243aa (patch)
tree72b6ff99747dea83dc374ede60bb2e2673b32669 /oox
parent010f58c4ef9a5e36d1c703ff20f8293bed90100a (diff)
respect element order in OOXML export, related fdo#59857
Change-Id: I00bb173010419a47ee30c9d6ae1173bb1ea0e370
Diffstat (limited to 'oox')
-rw-r--r--oox/source/export/chartexport.cxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/oox/source/export/chartexport.cxx b/oox/source/export/chartexport.cxx
index 1a7a3ca218df..ba17b0404aa8 100644
--- a/oox/source/export/chartexport.cxx
+++ b/oox/source/export/chartexport.cxx
@@ -1127,6 +1127,20 @@ void ChartExport::exportBarChart( Reference< chart2::XChartType > xChartType )
exportSeries( xChartType, nAttachedAxis );
Reference< XPropertySet > xTypeProp( xChartType, uno::UNO_QUERY );
+
+ if( xTypeProp.is() && GetProperty( xTypeProp, "GapwidthSequence") )
+ {
+ uno::Sequence< sal_Int32 > aBarPositionSequence;
+ mAny >>= aBarPositionSequence;
+ if( aBarPositionSequence.getLength() )
+ {
+ sal_Int32 nGapWidth = aBarPositionSequence[0];
+ pFS->singleElement( FSNS( XML_c, XML_gapWidth ),
+ XML_val, I32S( nGapWidth ),
+ FSEND );
+ }
+ }
+
if( mbIs3DChart )
{
// Shape