summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-09-22 09:54:34 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-09-30 15:40:48 +0000
commit390cc253e2e54d8df61bd21e01ff6a9decb69cc7 (patch)
tree54ed9f7de72cb4771884e57dca06e29bc17ee128
parentcda5c1f15f73922026992036bdaf631bad19c76f (diff)
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 <noelgrandin@gmail.com> Date: Tue Mar 8 20:41:21 2016 +0200 sequence->vector in sc Change-Id: I7a6539005f42c7a7036c60b12a9ff2f77f71ba6b Reviewed-on: https://gerrit.libreoffice.org/29169 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
-rw-r--r--sc/source/core/tool/charthelper.cxx10
1 files changed, 3 insertions, 7 deletions
diff --git a/sc/source/core/tool/charthelper.cxx b/sc/source/core/tool/charthelper.cxx
index e75677cb50a5..55388cdb06ee 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() );
}
}