diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-02-21 03:06:27 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-02-21 03:09:07 +0100 |
commit | e4f14d089d81459ac2bf3c40e75e6cfd348b58c5 (patch) | |
tree | 88d4e92e1934cff63084140fc001c19ab567570c /sc | |
parent | fix typo (diff) | |
download | core-e4f14d089d81459ac2bf3c40e75e6cfd348b58c5.tar.gz core-e4f14d089d81459ac2bf3c40e75e6cfd348b58c5.zip |
don't add empty categories, fdo#46332
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/unoobj/chart2uno.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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 ); } |