Kaydet (Commit) d0a230db authored tarafından Eike Rathke's avatar Eike Rathke

Use ScSetStringParam::mbCheckLinkFormula instead

... of obtaining the formula cell again.

Change-Id: I37978744577a45c0234d2bfa222e96de548786e6
üst 98c0bd7f
......@@ -1213,21 +1213,11 @@ static bool lcl_PutString(
aParam.mbDetectNumberFormat = bDetectNumFormat;
aParam.meSetTextNumFormat = ScSetStringParam::SpecialNumberOnly;
aParam.mbHandleApostrophe = false;
aParam.mbCheckLinkFormula = true;
if ( bUseDocImport )
rDocImport.setAutoInput(ScAddress(nCol, nRow, nTab), rStr, &aParam);
else
{
pDoc->SetString( nCol, nRow, nTab, rStr, &aParam );
// ScColumn::ParseString() is strict about the first character
// having to be '=' for formula, so we can use that here and don't
// need to obtain the created cell for each and every value.
if (rStr.getLength() > 1 && rStr[0] == '=')
{
const ScFormulaCell* pFC = pDoc->GetFormulaCell( ScAddress( nCol, nRow, nTab));
if (pFC)
pDoc->CheckLinkFormulaNeedingCheck( *pFC->GetCode());
}
}
}
else
{
......
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