[Libreoffice-commits] core.git: sc/source

Julien Nabet serval2412 at yahoo.fr
Sat Jan 23 01:33:45 PST 2016


 sc/source/core/data/conditio.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit a0a4ea3c636fc18cca6a3b2f9391996fb909e81f
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Fri Jan 22 20:18:33 2016 +0100

    tdf#97308: fix logic with conditional "ends with"
    
    Change-Id: Ib9f9ed627dc37b11d8c3911aa4fe62141ff471c2
    Reviewed-on: https://gerrit.libreoffice.org/21723
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>

diff --git a/sc/source/core/data/conditio.cxx b/sc/source/core/data/conditio.cxx
index d2402a3..8b8b4bc 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:


More information about the Libreoffice-commits mailing list