summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-01-27 06:49:35 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-01-27 06:54:25 +0100
commit33c387d27fd36448372d11cb4c4a1971ef5058d1 (patch)
tree1ebd0f00a5db04df637a93e4920e96d2567baa8b
parent3d1a4d246f6c82585c6ec8d5d856cf802bffcede (diff)
better check for more formula token types, related fdo#74077
Change-Id: I1723b5640fe438e72d1bbe2946c3aac0ae244e81
-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 94abbbbf600d..ca466a53b877 100644
--- a/sc/source/core/data/formulacell.cxx
+++ b/sc/source/core/data/formulacell.cxx
@@ -3484,6 +3484,18 @@ ScFormulaCell::CompareState ScFormulaCell::CompareByTokenArray( ScFormulaCell& r
return NotEqual;
}
break;
+ case formula::svIndex:
+ {
+ if(pThisTok->GetIndex() != pOtherTok->GetIndex())
+ return NotEqual;
+ }
+ break;
+ case formula::svByte:
+ {
+ if(pThisTok->GetByte() != pOtherTok->GetByte())
+ return NotEqual;
+ }
+ break;
default:
;
}