From 476ceebf4bc1b244dcdb34a743ce5c851a959952 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 22 Sep 2016 09:54:34 +0200 Subject: tdf#101894 Copying a single sheet with a chart on it garbles the chart ..on the new sheet Bug introduced with commit 86e9ef21a06a9babefb778dfc3e02118d371d70d Author: Noel Grandin Date: Tue Mar 8 20:41:21 2016 +0200 sequence->vector in sc Change-Id: I7a6539005f42c7a7036c60b12a9ff2f77f71ba6b --- sc/source/core/tool/charthelper.cxx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/sc/source/core/tool/charthelper.cxx b/sc/source/core/tool/charthelper.cxx index ee93d8400576..37285a353c04 100644 --- a/sc/source/core/tool/charthelper.cxx +++ b/sc/source/core/tool/charthelper.cxx @@ -224,13 +224,9 @@ void ScChartHelper::GetChartRanges( const uno::Reference< chart2::XChartDocument uno::Reference< chart2::data::XDataSequence > xValues( xLabeledSequence->getValues()); if (xLabel.is()) - rRanges.push_back( xLabel->getSourceRangeRepresentation() ); - else - rRanges.push_back( OUString() ); - if (xValues.is()) - rRanges.push_back( xValues->getSourceRangeRepresentation() ); - else - rRanges.push_back( OUString() ); + rRanges.push_back( xLabel->getSourceRangeRepresentation() ); + if (xValues.is()) + rRanges.push_back( xValues->getSourceRangeRepresentation() ); } } -- cgit v1.2.3