diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-09-15 14:56:12 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-09-16 22:28:09 +0200 |
commit | eb55bc5eae82873492cfd7577fb553b1c5abff6b (patch) | |
tree | f99b6429c661ecc039e463ab57762ddfa0775af7 /sc/source/core/data/column.cxx | |
parent | d9ee08d6fdc23cafa606bbbebd0b64a559fcf24c (diff) |
ScFormulaCell ctor variants never called with null ScDocument*
Change-Id: Ie0814a8948e2a4bcf723f0418c496fbbe85495ae
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102878
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 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/data/column.cxx b/sc/source/core/data/column.cxx index f5dbcb96f16f..a50cdffc702f 100644 --- a/sc/source/core/data/column.cxx +++ b/sc/source/core/data/column.cxx @@ -1293,7 +1293,7 @@ class CopyAsLinkHandler ScTokenArray aArr(mrDestCol.GetDoc()); aArr.AddSingleReference(aRef); - return new ScFormulaCell(&mrDestCol.GetDoc(), ScAddress(mrDestCol.GetCol(), nRow, mrDestCol.GetTab()), aArr); + return new ScFormulaCell(mrDestCol.GetDoc(), ScAddress(mrDestCol.GetCol(), nRow, mrDestCol.GetTab()), aArr); } void createRefBlock(const sc::CellStoreType::value_type& aNode, size_t nOffset, size_t nDataSize) @@ -2325,7 +2325,7 @@ class UpdateRefOnNonCopy // Insert the old formula group into the undo document. ScAddress aUndoPos = rOldPos; - ScFormulaCell* pFC = new ScFormulaCell(mpUndoDoc, aUndoPos, rOldCode.Clone()); + ScFormulaCell* pFC = new ScFormulaCell(*mpUndoDoc, aUndoPos, rOldCode.Clone()); if (nLength == 1) { |