diff options
-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 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: |