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

Resolves: tdf#102257 RANDBETWEEN() volatile like RAND(), ScRecalcMode::ALWAYS

Change-Id: I01698e6b9981d7dd15bf42fcb69a7bd4778d1798
Reviewed-on: https://gerrit.libreoffice.org/61792Reviewed-by: 's avatarEike Rathke <erack@redhat.com>
Tested-by: Jenkins
üst f8f39521
......@@ -1452,9 +1452,17 @@ void FormulaCompiler::Factor()
case ocConvertOOo :
case ocDde:
case ocMacro:
case ocExternal:
case ocWebservice:
pArr->AddRecalcMode( ScRecalcMode::ONLOAD_LENIENT );
break;
// RANDBETWEEN() is volatile like RAND(). Other Add-In
// functions may have to be recalculated or not, we don't
// know, classify as ONLOAD_LENIENT.
case ocExternal:
if (mpToken->GetExternal() == "com.sun.star.sheet.addin.Analysis.getRandbetween")
pArr->SetExclusiveRecalcModeAlways();
else
pArr->AddRecalcMode( ScRecalcMode::ONLOAD_LENIENT );
break;
// If the referred cell is moved the value changes.
case ocColumn :
......
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