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

CheckLinkFormulaNeedingCheck() for .ods named expressions

This is specifically necessary for named expressions that are used
in conditional format formulas, for which RPN is generated at a
later stage, not during import.

Change-Id: Ia8e1d92a3a12f6c226fec56e85f23f122f2fe902
üst 3ddb9a02
......@@ -63,9 +63,14 @@ ScRangeData::ScRangeData( ScDocument* pDok,
mnMaxCol (-1)
{
if (!rSymbol.isEmpty())
CompileRangeData( rSymbol, pDoc->IsImportingXML());
{
// Let the compiler set an error on unknown names for a subsequent
// CompileUnresolvedXML().
const bool bImporting = pDoc->IsImportingXML();
CompileRangeData( rSymbol, bImporting);
if (bImporting)
pDoc->CheckLinkFormulaNeedingCheck( *pCode);
}
else
{
// #i63513#/#i65690# don't leave pCode as NULL.
......@@ -194,6 +199,7 @@ void ScRangeData::CompileUnresolvedXML( sc::CompileFormulaContext& rCxt )
// Don't let the compiler set an error for unknown names on final
// compile, errors are handled by the interpreter thereafter.
CompileRangeData( aSymbol, false);
rCxt.getDoc()->CheckLinkFormulaNeedingCheck( *pCode);
}
}
......
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