diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-07-01 15:10:19 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-07-02 20:56:31 -0400 |
commit | 5e2b7e37a29edf45f829ccee2302a942b54568a1 (patch) | |
tree | ab5365da66d926756c111030627caff7617f5d6b /oox/source | |
parent | bdad8d9051c207b2eff0d5a7842da83e6119a600 (diff) |
bnc#812796: Don't create data series when the series has no values.
Change-Id: I92e2d7a3fab0948aea0557cf3cb65d57d48f3f59
Diffstat (limited to 'oox/source')
-rw-r--r-- | oox/source/drawingml/chart/seriesconverter.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/oox/source/drawingml/chart/seriesconverter.cxx b/oox/source/drawingml/chart/seriesconverter.cxx index 7c1a0859d767..9f6737dd72d7 100644 --- a/oox/source/drawingml/chart/seriesconverter.cxx +++ b/oox/source/drawingml/chart/seriesconverter.cxx @@ -544,6 +544,10 @@ Reference< XDataSeries > SeriesConverter::createDataSeries( const TypeGroupConve Reference< XDataSequence > xValues = xYValueSeq->getValues(); if( xValues.is() ) nDataPointCount = xValues->getData().getLength(); + + if (!nDataPointCount) + // No values present. Don't create a data series. + return Reference<XDataSeries>(); } // add X values of scatter and bubble charts if( !rTypeInfo.mbCategoryAxis ) |