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

prevent ForceArray propagation on the same token, tdf#95670 follow-up

This may happen if the last RPN token is put and the function has a
ForceArray parameter but now again would be wrong if not all parameters
are ForceArray.

Change-Id: I890fb6b5b88337033cfcf2e8189371ee39461205
üst 01fc6487
......@@ -2256,7 +2256,7 @@ bool FormulaCompiler::IsForceArrayParameter( const FormulaToken* /*pToken*/, sal
void FormulaCompiler::ForceArrayOperator( FormulaTokenRef& rCurr )
{
if (!pCurrentFactorToken)
if (!pCurrentFactorToken || (pCurrentFactorToken.get() == rCurr.get()))
return;
if (!(rCurr->GetOpCode() != ocPush && (rCurr->GetType() == svByte || rCurr->GetType() == svJump)))
......
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