diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-04-11 21:37:54 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-04-11 21:40:28 -0400 |
commit | f9cc0daec26016722bf5260e4e2634e6dcfe25a2 (patch) | |
tree | c7d0e6760b9ca160616e6cce731927d77ccb4df1 /sc/source/core/data/formulacell.cxx | |
parent | d5d43b2d8d3b8d547c8fd7553d101c31f3bfdff8 (diff) |
fdo#77307: Compare external formula tokens correctly.
To avoid different external (add-in) tokens from being evaluated equal.
Change-Id: If78187901bdca7fe0da50442b0bb66e0650dc70f
Diffstat (limited to 'sc/source/core/data/formulacell.cxx')
-rw-r--r-- | sc/source/core/data/formulacell.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sc/source/core/data/formulacell.cxx b/sc/source/core/data/formulacell.cxx index 9a2106604ba1..363edb0ce11e 100644 --- a/sc/source/core/data/formulacell.cxx +++ b/sc/source/core/data/formulacell.cxx @@ -3641,6 +3641,15 @@ ScFormulaCell::CompareState ScFormulaCell::CompareByTokenArray( ScFormulaCell& r return NotEqual; } break; + case formula::svExternal: + { + if (pThisTok->GetExternal() != pOtherTok->GetExternal()) + return NotEqual; + + if (pThisTok->GetByte() != pOtherTok->GetByte()) + return NotEqual; + } + break; default: ; } |