summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/tabview3.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/view/tabview3.cxx')
-rw-r--r--sc/source/ui/view/tabview3.cxx13
1 files changed, 4 insertions, 9 deletions
diff --git a/sc/source/ui/view/tabview3.cxx b/sc/source/ui/view/tabview3.cxx
index 4471b3662c35..2133abda414e 100644
--- a/sc/source/ui/view/tabview3.cxx
+++ b/sc/source/ui/view/tabview3.cxx
@@ -499,8 +499,7 @@ void ScTabView::CheckSelectionTransfer()
ScMarkData& rMark = aViewData.GetMarkData();
if (rMark.IsMarked())
{
- ScRange aMarkRange;
- rMark.GetMarkArea( aMarkRange );
+ const ScRange& aMarkRange = rMark.GetMarkArea();
OUString aStartAddress = aMarkRange.aStart.GetColRowString();
OUString aEndAddress = aMarkRange.aEnd.GetColRowString();
collectUIInformation({{"RANGE", aStartAddress + ":" + aEndAddress}});
@@ -1570,8 +1569,7 @@ void ScTabView::MarkColumns()
ScMarkData& rMark = aViewData.GetMarkData();
if (rMark.IsMarked())
{
- ScRange aMarkRange;
- rMark.GetMarkArea( aMarkRange );
+ const ScRange& aMarkRange = rMark.GetMarkArea();
nStartCol = aMarkRange.aStart.Col();
nEndCol = aMarkRange.aEnd.Col();
}
@@ -1598,8 +1596,7 @@ void ScTabView::MarkRows()
ScMarkData& rMark = aViewData.GetMarkData();
if (rMark.IsMarked())
{
- ScRange aMarkRange;
- rMark.GetMarkArea( aMarkRange );
+ const ScRange& aMarkRange = rMark.GetMarkArea();
nStartRow = aMarkRange.aStart.Row();
nEndRow = aMarkRange.aEnd.Row();
}
@@ -1737,9 +1734,7 @@ void ScTabView::Unmark()
void ScTabView::SetMarkData( const ScMarkData& rNew )
{
DoneBlockMode();
- ScRange aMarkArea( ScAddress::UNINITIALIZED );
- rNew.GetMarkArea( aMarkArea );
- InitOwnBlockMode( aMarkArea );
+ InitOwnBlockMode( rNew.GetMarkArea());
aViewData.GetMarkData() = rNew;
MarkDataChanged();