diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2021-12-13 21:35:01 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2021-12-14 17:04:39 +0100 |
commit | 0d1971a8dc1f7ce24f67abcab4d6af9cf2b7b823 (patch) | |
tree | f8a8e7c165788f1da9e635a342d5406148a270c6 /sc/inc | |
parent | d9a115ae5ba869c1629973e9462d1925812354f0 (diff) |
make sure text operations are not queried by (numeric) value
E.g. SC_CONTAINS is, according to isPartialTextMatchOp(), a text-only
operation, so query it as such and not as a numeric value. This
fixes/allows e.g. substring queries on dates.
Change-Id: I6c612d9934193828b7a7eabed92f2bfeb385e5a0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126767
Tested-by: Jenkins
Reviewed-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'sc/inc')
-rw-r--r-- | sc/inc/queryevaluator.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/inc/queryevaluator.hxx b/sc/inc/queryevaluator.hxx index 44bf52ec3685..a1fd20111071 100644 --- a/sc/inc/queryevaluator.hxx +++ b/sc/inc/queryevaluator.hxx @@ -79,7 +79,8 @@ class ScQueryEvaluator bool isRealWildOrRegExp(const ScQueryEntry& rEntry) const; bool isTestWildOrRegExp(const ScQueryEntry& rEntry) const; - static bool isQueryByValue(const ScQueryEntry::Item& rItem, const ScRefCellValue& rCell); + static bool isQueryByValue(const ScQueryEntry& rEntry, const ScQueryEntry::Item& rItem, + const ScRefCellValue& rCell); static bool isQueryByValueForCell(const ScRefCellValue& rCell); static bool isQueryByString(const ScQueryEntry& rEntry, const ScQueryEntry::Item& rItem, const ScRefCellValue& rCell); |