diff options
author | Eike Rathke <erack@redhat.com> | 2017-01-05 16:37:07 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2017-01-05 18:23:45 +0100 |
commit | 44021bd4018f4f97d9f0f6b6e1f0a256e8853537 (patch) | |
tree | e62fdbd9af5ff1e4e409e2f0171f4d51ec02142a /sc/source/core/data/cellvalue.cxx | |
parent | 857be5b2db4b2726306199bc279942f621bf55d8 (diff) |
check token array code errors when testing for equality, tdf#105024 related
To not end up with a series of equal errors when importing individual error
cells and attempting to group them.
Change-Id: Idfcbb2e7077fc8799ef925c2c2e17188ac5e3b14
Diffstat (limited to 'sc/source/core/data/cellvalue.cxx')
-rw-r--r-- | sc/source/core/data/cellvalue.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/core/data/cellvalue.cxx b/sc/source/core/data/cellvalue.cxx index 147ad514f3fb..efe66f789596 100644 --- a/sc/source/core/data/cellvalue.cxx +++ b/sc/source/core/data/cellvalue.cxx @@ -63,6 +63,9 @@ bool equalsFormulaCells( const ScFormulaCell* p1, const ScFormulaCell* p2 ) if (pCode1->GetLen() != pCode2->GetLen()) return false; + if (pCode1->GetCodeError() != pCode2->GetCodeError()) + return false; + sal_uInt16 n = pCode1->GetLen(); formula::FormulaToken** ppToken1 = pCode1->GetArray(); formula::FormulaToken** ppToken2 = pCode2->GetArray(); |