diff options
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/vba/vbarange.cxx | 7 |
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))); } }; |