summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2016-01-22 20:18:33 +0100
committerJulien Nabet <serval2412@yahoo.fr>2016-01-23 09:33:10 +0000
commita0a4ea3c636fc18cca6a3b2f9391996fb909e81f (patch)
tree7b66dc2f0e31fc7e6efd6d42b31d19cc899fd32e
parentbeea0484de87709da0814b4acd19527c8824f9b3 (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>
-rw-r--r--sc/source/core/data/conditio.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/data/conditio.cxx b/sc/source/core/data/conditio.cxx
index d2402a339cad..8b8b4bc32c28 100644
--- a/sc/source/core/data/conditio.cxx
+++ b/sc/source/core/data/conditio.cxx
@@ -1112,12 +1112,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: