summaryrefslogtreecommitdiff
path: root/sc/source/ui/vba
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/vba')
-rw-r--r--sc/source/ui/vba/vbachart.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/sc/source/ui/vba/vbachart.cxx b/sc/source/ui/vba/vbachart.cxx
index dcd73199f2bb..09c061a36ced 100644
--- a/sc/source/ui/vba/vbachart.cxx
+++ b/sc/source/ui/vba/vbachart.cxx
@@ -564,15 +564,12 @@ ScVbaChart::setSourceData( const css::uno::Reference< ::ooo::vba::excel::XRange
{
try
{
- uno::Sequence< table::CellRangeAddress > aRangeAddresses(1);
table::CellRangeAddress aSingleRangeAddress;
uno::Reference< sheet::XCellRangeAddressable > xAddressable( _xCalcRange->getCellRange(), uno::UNO_QUERY_THROW );
aSingleRangeAddress = xAddressable->getRangeAddress();
- aRangeAddresses[0] = aSingleRangeAddress;
-
- mxTableChart->setRanges(aRangeAddresses);
+ mxTableChart->setRanges({ aSingleRangeAddress } );
bool bsetRowHeaders = false;
bool bsetColumnHeaders = false;