summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/cellsh.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/view/cellsh.cxx')
-rw-r--r--sc/source/ui/view/cellsh.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/source/ui/view/cellsh.cxx b/sc/source/ui/view/cellsh.cxx
index db9523332f67..1a5f697a0a99 100644
--- a/sc/source/ui/view/cellsh.cxx
+++ b/sc/source/ui/view/cellsh.cxx
@@ -361,8 +361,7 @@ void ScCellShell::GetCellState( SfxItemSet& rSet )
{
ScMarkData aMarkData = GetViewData().GetMarkData();
aMarkData.MarkToSimple();
- ScRange aRange;
- aMarkData.GetMarkArea(aRange);
+ const ScRange& aRange = aMarkData.GetMarkArea();
if(aMarkData.IsMarked())
{
if (!rDoc.IsBlockEditable( aCursor.Tab(), aRange.aStart.Col(),aRange.aStart.Row(),