diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-03-04 00:05:33 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2012-03-05 13:34:14 +0100 |
commit | 09c97519a1ccb8935787946b63cfb0b142f540e3 (patch) | |
tree | 8b359e1f1cad93e1b67faa5873626cde4d714b37 | |
parent | 3730a7173298814a709a0bcbb2150288ea1c464d (diff) |
don't crash for empty input data in charts, fdo#46885
Signed-off-by: Michael Meeks <michael.meeks@suse.com>
(cherry picked from commit 6444d7ed7a4f99ffcd8d04c5d27722d8c4d942b2)
Signed-off-by: Eike Rathke <erack@redhat.com>
Signed-off-by: Petr Mladek <pmladek@suse.cz>
-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 53b049b80f3e..93dcb565a115 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() && xChartSeries->getValues()->getData().getLength() ) + if ( xChartSeries.is() && xChartSeries->getValues().is() && xChartSeries->getValues()->getData().getLength() ) { aSeqs.push_back( xChartSeries ); } |