diff options
author | Eike Rathke <erack@redhat.com> | 2015-06-11 18:45:10 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2015-06-11 19:21:21 +0200 |
commit | 8accb2406fb9e8a32aa790c45a97f3a45ef4d906 (patch) | |
tree | 51c0ca07ca707159426b1cdd598759b09c5f3b58 | |
parent | 3b751dee4f3447236f0c71b66063697560047de1 (diff) |
recompile TableRef formulas only after position was updated, tdf#91842
Change-Id: Ibdcfdd6175e6ccb8aded02d59b1b21e92a0fc120
(cherry picked from commit 6d7dcb81a25bb8896adad352a9e7151a41e18245)
-rw-r--r-- | sc/source/core/data/formulacell.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sc/source/core/data/formulacell.cxx b/sc/source/core/data/formulacell.cxx index 33499badc26a..85b0f8308f3e 100644 --- a/sc/source/core/data/formulacell.cxx +++ b/sc/source/core/data/formulacell.cxx @@ -881,8 +881,10 @@ ScFormulaCell::ScFormulaCell( const ScFormulaCell& rCell, ScDocument& rDoc, cons if ( !bCompileLater && bClipMode ) { // Merging ranges needs the actual positions after UpdateReference. - // ColRowNames need new lookup after positions are adjusted. - bCompileLater = pCode->HasOpCode( ocRange) || pCode->HasOpCode( ocColRowName); + // ColRowNames and TableRefs need new lookup after positions are + // adjusted. + bCompileLater = pCode->HasOpCode( ocRange) || pCode->HasOpCode( ocColRowName) || + pCode->HasOpCode( ocTableRef); } if ( !bCompileLater ) { |