summaryrefslogtreecommitdiffstats
path: root/sc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-02-21 03:06:27 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-02-21 03:09:07 +0100
commite4f14d089d81459ac2bf3c40e75e6cfd348b58c5 (patch)
tree88d4e92e1934cff63084140fc001c19ab567570c /sc
parentfix typo (diff)
downloadcore-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.cxx2
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 );
}