summaryrefslogtreecommitdiffstats
path: root/sc/source/ui/view/cellsh1.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/view/cellsh1.cxx')
-rw-r--r--sc/source/ui/view/cellsh1.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/source/ui/view/cellsh1.cxx b/sc/source/ui/view/cellsh1.cxx
index 718b33cf8d14..4d5d912b7afb 100644
--- a/sc/source/ui/view/cellsh1.cxx
+++ b/sc/source/ui/view/cellsh1.cxx
@@ -2866,10 +2866,9 @@ void ScCellShell::ExecuteFillSingleEdit()
// Get the initial text value from the above cell.
ScDocument* pDoc = GetViewData()->GetDocument();
- ScRefCellValue aCell;
ScAddress aPrevPos = aCurPos;
aPrevPos.IncRow(-1);
- aCell.assign(*pDoc, aPrevPos);
+ ScRefCellValue aCell(*pDoc, aPrevPos);
if (aCell.meType == CELLTYPE_FORMULA)
{