[Libreoffice-commits] core.git: oox/source
Markus Mohrhard
markus.mohrhard at googlemail.com
Mon Apr 20 02:15:40 PDT 2015
oox/source/drawingml/chart/typegroupconverter.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit b4adcc441d9c6396797321c055858f1e85807374
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Mon Apr 20 11:00:45 2015 +0200
don't create random data series, related bnc#839727
Change-Id: I29d29e06a17167e9fc2d3caf40084e80274dae72
Reviewed-on: https://gerrit.libreoffice.org/15419
Reviewed-by: Andras Timar <andras.timar at collabora.com>
Tested-by: Andras Timar <andras.timar at collabora.com>
diff --git a/oox/source/drawingml/chart/typegroupconverter.cxx b/oox/source/drawingml/chart/typegroupconverter.cxx
index 2a38f5a..ba65b1f 100644
--- a/oox/source/drawingml/chart/typegroupconverter.cxx
+++ b/oox/source/drawingml/chart/typegroupconverter.cxx
@@ -288,7 +288,7 @@ Reference< XLabeledDataSequence > TypeGroupConverter::createCategorySequence()
if( !xLabeledSeq.is() && mrModel.maSeries.size() > 0 ) {
if( nMaxValues < 0 )
nMaxValues = 2;
- SeriesModel &aModel = mrModel.maSeries.create();
+ SeriesModel &aModel = *mrModel.maSeries.get(0);
DataSourceModel &aSrc = aModel.maSources.create( SeriesModel::CATEGORIES );
DataSequenceModel &aSeq = aSrc.mxDataSeq.create();
for( sal_Int32 i = 0; i < nMaxValues; i++ )
More information about the Libreoffice-commits
mailing list