Kaydet (Commit) 9d8c89d9 authored tarafından Eike Rathke's avatar Eike Rathke

Resolves: tdf#73081 empty <> not-empty is also a match if numeric

This simplifies to match empty for the same conditions whether
numeric or not, an empty string does not result in numeric 0 here.

Change-Id: I923a3e1f07dd2691d3ac720fc28ba76986fe6c3d
Reviewed-on: https://gerrit.libreoffice.org/61486Reviewed-by: 's avatarEike Rathke <erack@redhat.com>
Tested-by: Jenkins
üst 86d9e48f
......@@ -290,9 +290,9 @@ void ScQueryParamBase::FillInExcelSyntax(
* This could be handled independently if all queries should support
* it, needs to be evaluated if that actually is desired. */
// (empty = empty) is a match, and (empty <> not-empty) also is a match
if (rItem.meType == ScQueryEntry::ByString)
rItem.mbMatchEmpty = ((rEntry.eOp == SC_EQUAL && rItem.maString.isEmpty())
// (empty = empty) is a match, and (empty <> not-empty) also is a
// match. (empty = 0) is not a match.
rItem.mbMatchEmpty = ((rEntry.eOp == SC_EQUAL && rItem.maString.isEmpty())
|| (rEntry.eOp == SC_NOT_EQUAL && !rItem.maString.isEmpty()));
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment