summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-01-27 06:33:46 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-01-27 06:35:46 +0100
commit3d1a4d246f6c82585c6ec8d5d856cf802bffcede (patch)
tree1d3020a209ea642c220d271c57f9e19270b546ce /sc
parent2e1933af841bc942d0283a1943a0dd7ca0fa5357 (diff)
we need to check that the content is equal as well, fdo#74077
There are a few more tokens that need to be inspected. Change-Id: I59b5046ddde5eb8b638ad8f17b00bc7eb6966467
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/formulacell.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/sc/source/core/data/formulacell.cxx b/sc/source/core/data/formulacell.cxx
index d7384b9f2c5a..94abbbbf600d 100644
--- a/sc/source/core/data/formulacell.cxx
+++ b/sc/source/core/data/formulacell.cxx
@@ -3472,6 +3472,18 @@ ScFormulaCell::CompareState ScFormulaCell::CompareByTokenArray( ScFormulaCell& r
bInvariant = false;
}
break;
+ case formula::svDouble:
+ {
+ if(!rtl::math::approxEqual(pThisTok->GetDouble(), pOtherTok->GetDouble()))
+ return NotEqual;
+ }
+ break;
+ case formula::svString:
+ {
+ if(pThisTok->GetString() != pOtherTok->GetString())
+ return NotEqual;
+ }
+ break;
default:
;
}