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

TableRef: include ocTableRef in FormulaToken::IsRef() for HasReferences()

let FormulaTokenArray::HasReferences() also check RPN

Change-Id: Ic97332265c50485691f76b81d8396705d7728ab0
üst 37464e3f
......@@ -147,7 +147,8 @@ bool FormulaToken::IsRef() const
case svExternalDoubleRef:
return true;
default:
;
if (eOp == ocTableRef)
return true;
}
return false;
......@@ -634,6 +635,12 @@ bool FormulaTokenArray::HasReferences() const
return true;
}
for (sal_uInt16 i = 0; i < nRPN; ++i)
{
if (pRPN[i]->IsRef())
return true;
}
return false;
}
......
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