From e4f14d089d81459ac2bf3c40e75e6cfd348b58c5 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Tue, 21 Feb 2012 03:06:27 +0100 Subject: [PATCH] don't add empty categories, fdo#46332 --- sc/source/ui/unoobj/chart2uno.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sc/source/ui/unoobj/chart2uno.cxx b/sc/source/ui/unoobj/chart2uno.cxx index 0317f94e09a0..7e42f8da63c2 100644 --- a/sc/source/ui/unoobj/chart2uno.cxx +++ b/sc/source/ui/unoobj/chart2uno.cxx @@ -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 ); }