don't add empty categories, fdo#46332

This commit is contained in:
Markus Mohrhard 2012-02-21 03:06:27 +01:00
parent fc8a69bd33
commit e4f14d089d

View file

@ -1560,7 +1560,7 @@ ScChart2DataProvider::createDataSource(
}
Reference< chart2::data::XLabeledDataSequence > xChartSeries = lcl_createLabeledDataSequenceFromTokens(
pValueTokens, pLabelTokens, m_pDocument, this, m_bIncludeHiddenCells ); //ownership of pointers is transfered!
if ( xChartSeries.is() )
if ( xChartSeries.is() && xChartSeries->getValues()->getData().getLength() )
{
aSeqs.push_back( xChartSeries );
}