diff options
Diffstat (limited to 'formula/source/core/api/FormulaCompiler.cxx')
-rw-r--r-- | formula/source/core/api/FormulaCompiler.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/formula/source/core/api/FormulaCompiler.cxx b/formula/source/core/api/FormulaCompiler.cxx index 8323e15acff4..468ecd321a68 100644 --- a/formula/source/core/api/FormulaCompiler.cxx +++ b/formula/source/core/api/FormulaCompiler.cxx @@ -1066,18 +1066,22 @@ void FormulaCompiler::Factor() // If the referred cell is moved the value changes. case ocColumn : case ocRow : + pArr->SetRecalcModeOnRefMove(); + break; // ocCell needs recalc on move for some possible type values. + // and recalc mode on load, fdo#60646 case ocCell : pArr->SetRecalcModeOnRefMove(); + pArr->AddRecalcMode( RECALCMODE_ONLOAD ); break; case ocHyperLink : // cell with hyperlink needs to be calculated on load to // get its matrix result generated. - pArr->SetRecalcModeOnLoad(); + pArr->AddRecalcMode( RECALCMODE_ONLOAD ); pArr->SetHyperLink(true); break; case ocDde: - pArr->SetRecalcModeOnLoad(); + pArr->AddRecalcMode( RECALCMODE_ONLOAD ); break; default: ; // nothing |