diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-09-13 16:56:14 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-09-13 22:12:13 +0200 |
commit | 399609c352b3f354e6857ae1beee6283018516e2 (patch) | |
tree | 6b1ff740e64abd75837cce7f67ce9f50113d4ecb /sc/source/core/data/column.cxx | |
parent | f3af5f8e6897279dc8e4ad2695caf7f25937d608 (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.cxx | 2 |
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); |