Kaydet (Commit) b4adcc44 authored tarafından Markus Mohrhard's avatar Markus Mohrhard Kaydeden (comit) Andras Timar

don't create random data series, related bnc#839727

Change-Id: I29d29e06a17167e9fc2d3caf40084e80274dae72
Reviewed-on: https://gerrit.libreoffice.org/15419Reviewed-by: 's avatarAndras Timar <andras.timar@collabora.com>
Tested-by: 's avatarAndras Timar <andras.timar@collabora.com>
üst fd8c06ad
......@@ -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++ )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment