summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-02-21 03:06:27 +0100
committerPetr Mladek <pmladek@suse.cz>2012-02-21 11:34:57 +0100
commit065cdf07791b2de4c6ab580084d21d2b5020ca98 (patch)
tree33cb29ee8f999bf3190a60665ca64379271ef56d /sc
parent16a3beb02c016d972d4d1bd6f0889e91f5d7718d (diff)
don't add empty categories, fdo#46332
Signed-off-by: Petr Mladek <pmladek@suse.cz>
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 b0b69f9c9a0e..53b049b80f3e 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 );
}