diff options
-rw-r--r-- | xmloff/source/chart/SchXMLPropertyMappingContext.cxx | 9 |
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; } |