diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2016-01-22 20:18:33 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2016-02-02 14:20:20 +0100 |
commit | 4cd75014ff798e9f592efc2495feb53a2a6dffd8 (patch) | |
tree | 8f8062d074e98abebe215a17e81e1369bbfa67aa /sc | |
parent | a6056bad206f727f30e36762a4c0868b6288fc11 (diff) |
tdf#97308: fix logic with conditional "ends with"
Change-Id: Ib9f9ed627dc37b11d8c3911aa4fe62141ff471c2
Reviewed-on: https://gerrit.libreoffice.org/21723
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
(cherry picked from commit a0a4ea3c636fc18cca6a3b2f9391996fb909e81f)
Reviewed-on: https://gerrit.libreoffice.org/21731
Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
(cherry picked from commit 9cd87519d7a9d97b58fafff25280bd77fe04ab25)
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/conditio.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/data/conditio.cxx b/sc/source/core/data/conditio.cxx index d4408d9a5d4c..f087af6efc7a 100644 --- a/sc/source/core/data/conditio.cxx +++ b/sc/source/core/data/conditio.cxx @@ -1108,12 +1108,12 @@ bool ScConditionEntry::IsValid( double nArg, const ScAddress& rPos ) const { OUString aStr = OUString::number(nVal1); OUString aStr2 = OUString::number(nArg); - bValid = !aStr2.endsWith(aStr); + bValid = aStr2.endsWith(aStr); } else { OUString aStr2 = OUString::number(nArg); - bValid = !aStr2.endsWith(aStrVal1); + bValid = aStr2.endsWith(aStrVal1); } break; case SC_COND_CONTAINS_TEXT: |