summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2016-01-22 20:18:33 +0100
committerKatarina Behrens <Katarina.Behrens@cib.de>2016-01-24 15:12:19 +0000
commit64b23ff688fc4ba3fc0205094380f072fd98b5b5 (patch)
treefa6e05edb93b11e75cd46e5b9edff815f90ef595
parent91c708955435503b1ec95b68a4fa234b949b335f (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/21730 Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de> Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
-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 6dd4c324741c..7bd9f5cd55a2 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: