sc/source/ui/unoobj/chart2uno.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 065cdf07791b2de4c6ab580084d21d2b5020ca98 Author: Markus Mohrhard <markus.mohrh...@googlemail.com> Date: Tue Feb 21 03:06:27 2012 +0100 don't add empty categories, fdo#46332 Signed-off-by: Petr Mladek <pmla...@suse.cz> diff --git a/sc/source/ui/unoobj/chart2uno.cxx b/sc/source/ui/unoobj/chart2uno.cxx index b0b69f9..53b049b 100644 --- a/sc/source/ui/unoobj/chart2uno.cxx +++ b/sc/source/ui/unoobj/chart2uno.cxx @@ -1565,7 +1565,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 ); } _______________________________________________ Libreoffice-commits mailing list Libreoffice-commits@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits