diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-07-01 15:10:19 -0400 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2014-07-03 11:15:05 +0200 |
commit | 6b2e74be33d0e7eba71a99c6eb8ae4a4545ed624 (patch) | |
tree | 0bc0030bc77c3302bc9512ee6fefeb2f381a0ec5 /oox | |
parent | 938cf25d7c9c475931a3b6ebc8d84b3e12a05528 (diff) |
bnc#812796: Don't create data series when the series has no values.
Change-Id: I92e2d7a3fab0948aea0557cf3cb65d57d48f3f59
(cherry picked from commit 5e2b7e37a29edf45f829ccee2302a942b54568a1)
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'oox')
-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 5c85d99f46e7..83761e1e58b4 100644 --- a/oox/source/drawingml/chart/seriesconverter.cxx +++ b/oox/source/drawingml/chart/seriesconverter.cxx @@ -562,6 +562,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 ) |