clear ScDocumentImport position cache if iterators are invalid
commit49a7e3cbc16f8e23910eadf6fbc135bdeb326253
authorCaolán McNamara <caolanm@redhat.com>
Wed, 16 Feb 2022 11:14:48 +0000 (16 11:14 +0000)
committerXisco Fauli <xiscofauli@libreoffice.org>
Mon, 21 Feb 2022 16:28:35 +0000 (21 17:28 +0100)
tree16b682f26c580fe4ffd15b0a7e79e11432177c93
parent1e548cb91c0db71d8f2f8826fb87d2ff8e766586
clear ScDocumentImport position cache if iterators are invalid

SheetDataBuffer::finalizeArrayFormula calls

ScCellRangeObj::setArrayTokens
ScDocFunc::EnterMatrix
ScDocument::InsertMatrixFormula

and InsertMatrixFormula calls the variant of ScColumn::SetFormulaCell
which doesn't take a sc::ColumnBlockPosition& param when SetFormulaCell
adds a cell to the column so any iterators belonging to ScDocumentImport
are invalid.

Change-Id: Ic2814ecbeafdeb99632d2a255ed6c1dedf7376b1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130150
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
sc/inc/documentimport.hxx
sc/source/core/data/documentimport.cxx
sc/source/filter/oox/sheetdatabuffer.cxx