summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-09-22 09:54:34 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-09-22 10:16:29 +0200
commit476ceebf4bc1b244dcdb34a743ce5c851a959952 (patch)
treed446d2b32a623c5e438b46444330269040cd264c
parent60d0b992ea3a910be79ae4a8e8b0bb32a358b18a (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
-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 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() );
}
}