summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-05-19 07:10:03 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-05-19 08:13:37 +0200
commitfefad3715a9ca8411228d2bf4a56c210e5b598ef (patch)
tree2f5b9a9519806486e2c2ad95f920f8115cb262da /xmloff
parentb5f45a51638901ea679bf238ab460283e41bc622 (diff)
fix import issue with property mapping
Change-Id: Iab06c8676569121f6def631fed07eaa57ffb07a2
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/chart/SchXMLPropertyMappingContext.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/xmloff/source/chart/SchXMLPropertyMappingContext.cxx b/xmloff/source/chart/SchXMLPropertyMappingContext.cxx
index affe3aabb4ff..7c92cbda67e8 100644
--- a/xmloff/source/chart/SchXMLPropertyMappingContext.cxx
+++ b/xmloff/source/chart/SchXMLPropertyMappingContext.cxx
@@ -47,6 +47,15 @@ Reference< chart2::data::XLabeledDataSequence2 > createAndAddSequenceToSeries( c
xSeqProp->setPropertyValue("Role", uno::makeAny( rRole));
xLabeledSeq->setValues( xSeq );
+ Reference< chart2::data::XDataSink > xSink( xSeriesSource, uno::UNO_QUERY );
+ if( xSink.is())
+ {
+ Sequence< Reference< chart2::data::XLabeledDataSequence > > aData( xSeriesSource->getDataSequences());
+ aData.realloc( aData.getLength() + 1 );
+ aData[ aData.getLength() - 1 ] = xLabeledSeq;
+ xSink->setData( aData );
+ }
+
return xLabeledSeq;
}