Kaydet (Commit) ec42c8b6 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

We can't support all cases until we have real range-based dep tracking.

Note that an absolute reference may indirectly reference one of the cells
in current formula group, and we aren't fully prepare for that use case
yet.

Change-Id: Ibd24a25b80963fe1235c2afb431ff7c7ceb27215
üst 1b99bc20
......@@ -2948,9 +2948,24 @@ bool ScFormulaCell::InterpretFormulaGroup()
// import / insert / delete etc. and is integral to the data structures
pDocument->RebuildFormulaGroups();
if( !xGroup.get() )
if (!xGroup || !pCode)
return false;
switch (pCode->GetVectorState())
{
case FormulaVectorEnabled:
// Good.
break;
case FormulaVectorCheckReference:
// To support this we would need a real range-based dependency
// tracking. We can't support this right now.
return false;
case FormulaVectorDisabled:
case FormulaVectorUnknown:
default:
return false;
}
// fprintf( stderr, "Interpret cell %d, %d\n", (int)aPos.Col(), (int)aPos.Row() );
if (xGroup->mbInvariant)
......
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