Kaydet (Commit) 95df39e3 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

we need to use ScDocumentImport for all calls

otherwise a reallocation of the cell vector will invalidate the
iterators for the position hint

e.g. fdo#35208-1.xls

Change-Id: I26e473c968633eb6e9cc3ecb1c8060105f5f47aa
üst 7220b55f
......@@ -320,7 +320,7 @@ void ImportExcel::ReadInteger()
maStrm >> nValue;
GetXFRangeBuffer().SetXF( aScPos, nXFIdx );
GetDoc().SetValue(aScPos, nValue);
GetDocImport().setNumericCell(aScPos, nValue);
}
}
......@@ -392,7 +392,7 @@ void ImportExcel::ReadBoolErr()
const ScTokenArray* pScTokArr = ErrorToFormula( nType, nValue, fValue );
ScFormulaCell* pCell = pScTokArr ? new ScFormulaCell(pD, aScPos, *pScTokArr) : new ScFormulaCell(pD, aScPos);
pCell->SetHybridDouble( fValue );
GetDoc().SetFormulaCell(aScPos, pCell);
GetDocImport().setFormulaCell(aScPos, pCell);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment