summaryrefslogtreecommitdiff
path: root/sc/source/core/data/cell.cxx
diff options
context:
space:
mode:
authorDaniel Bankston <daniel.e.bankston@gmail.com>2012-07-12 08:23:54 -0500
committerKohei Yoshida <kohei.yoshida@gmail.com>2012-08-23 11:49:57 -0400
commitbed0447cefb949fc77cfde7543397d96590082ba (patch)
tree6e11233c27c47a9149e79090aa83de955813e235 /sc/source/core/data/cell.cxx
parent5fd1516f82adf0330411adf90bee7e14cec856d5 (diff)
Check for more cases of functions that should always be recalculated
Thanks to Eike Rathke for pointing this out. Change-Id: Ie2ce2ebe54cd290a7bf1c55d58790e21833b1105
Diffstat (limited to 'sc/source/core/data/cell.cxx')
-rw-r--r--sc/source/core/data/cell.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/core/data/cell.cxx b/sc/source/core/data/cell.cxx
index 0e34b3510ccb..4676cc8a0e17 100644
--- a/sc/source/core/data/cell.cxx
+++ b/sc/source/core/data/cell.cxx
@@ -1101,7 +1101,8 @@ void ScFormulaCell::CompileXML( ScProgress& rProgress )
pDocument->SetHasMacroFunc( true );
//volatile cells must be added here for import
- if( pCode->IsRecalcModeAlways() )
+ if( pCode->IsRecalcModeAlways() || pCode->IsRecalcModeForced() ||
+ pCode->IsRecalcModeOnLoad() || pCode->IsRecalcModeOnLoadOnce() )
pDocument->PutInFormulaTree(this);
}