summaryrefslogtreecommitdiff
path: root/sc/source/core/data/column.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-09-13 16:56:14 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-09-13 22:12:13 +0200
commit399609c352b3f354e6857ae1beee6283018516e2 (patch)
tree6b1ff740e64abd75837cce7f67ce9f50113d4ecb /sc/source/core/data/column.cxx
parentf3af5f8e6897279dc8e4ad2695caf7f25937d608 (diff)
ScFormulaCell ctor variant always dereferences its ScDocument arg
Change-Id: Ibf626d52cc7a5968c60a3ec1ea2b34e0331b7ef2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102589 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/source/core/data/column.cxx')
-rw-r--r--sc/source/core/data/column.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/column.cxx b/sc/source/core/data/column.cxx
index 31b1630e219f..f2f8374df0c8 100644
--- a/sc/source/core/data/column.cxx
+++ b/sc/source/core/data/column.cxx
@@ -1466,7 +1466,7 @@ class CopyByCloneHandler
if (nErr != FormulaError::NONE)
{
// error codes are cloned with values
- ScFormulaCell* pErrCell = new ScFormulaCell(mrDestCol.GetDoc(), aDestPos);
+ ScFormulaCell* pErrCell = new ScFormulaCell(*mrDestCol.GetDoc(), aDestPos);
pErrCell->SetErrCode(nErr);
mrDestCol.SetFormulaCell(maDestPos, nRow, pErrCell, meListenType);
setDefaultAttrToDest(nRow);