summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2022-06-16 13:14:43 +0200
committerEike Rathke <erack@redhat.com>2022-06-16 14:24:14 +0200
commite44e418783d101c530c916db0b0f72c376188fdf (patch)
tree9028512b56e5c9ab0a07a9ae68da0d2cc17d376b /sc
parent0930096c4c5ed14f46a79f03b29f21cc915d7203 (diff)
One call to XCellRangeAddressable::getRangeAddress() is enough
... each needs to obtain it via ScUnoConversion::FillApiRange(). Change-Id: Ie98d5130067701f40c441d08bdb9faf7913bcdb8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135972 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/vba/vbarange.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/sc/source/ui/vba/vbarange.cxx b/sc/source/ui/vba/vbarange.cxx
index b98b5471ff7b..93b217f1d632 100644
--- a/sc/source/ui/vba/vbarange.cxx
+++ b/sc/source/ui/vba/vbarange.cxx
@@ -1140,12 +1140,9 @@ public:
static uno::Reference< excel::XRange > createRangeFromRange( const uno::Reference< XHelperInterface >& xParent, const uno::Reference<uno::XComponentContext >& xContext,
const uno::Reference< table::XCellRange >& xRange, const uno::Reference< sheet::XCellRangeAddressable >& xCellRangeAddressable )
{
+ const table::CellRangeAddress aRA( xCellRangeAddressable->getRangeAddress());
return uno::Reference< excel::XRange >( new ScVbaRange( xParent, xContext,
- xRange->getCellRangeByPosition(
- xCellRangeAddressable->getRangeAddress().StartColumn,
- xCellRangeAddressable->getRangeAddress().StartRow,
- xCellRangeAddressable->getRangeAddress().EndColumn,
- xCellRangeAddressable->getRangeAddress().EndRow ) ) );
+ xRange->getCellRangeByPosition( aRA.StartColumn, aRA.StartRow, aRA.EndColumn, aRA.EndRow)));
}
};