diff options
author | Eike Rathke <erack@redhat.com> | 2016-02-22 17:17:22 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2016-02-22 21:30:28 +0100 |
commit | b3a66ccdd3f4098670b593883602093c4a9e712c (patch) | |
tree | dd0bd6a1658acde5954f9e4e2b7ad483959629ee /sc | |
parent | 5ed83a9d2c00e0576c92a25162db4e3eec410bcc (diff) |
include '~' escape character in MaybeWildcard(), tdf#72196
Change-Id: I09ff6b07f63b9b9199b73d27d8118c18d233f2b2
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/tool/interpr1.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx index 26b7f108717b..82f6bebf0177 100644 --- a/sc/source/core/tool/interpr1.cxx +++ b/sc/source/core/tool/interpr1.cxx @@ -8515,9 +8515,10 @@ bool ScInterpreter::MayBeWildcard( const OUString& rStr, const ScDocument* pDoc if ( pDoc && !pDoc->GetDocOptions().IsFormulaWildcardsEnabled() ) return false; - // Wildcards without '~' escape, if there are no wildcards then an escaped - // character does not make sense. - static const sal_Unicode cw[] = { '*','?', 0 }; + // Wildcards with '~' escape, if there are no wildcards then an escaped + // character does not make sense, but it modifies the search pattern in an + // Excel compatible wildcard search.. + static const sal_Unicode cw[] = { '*','?','~', 0 }; const sal_Unicode* p1 = rStr.getStr(); sal_Unicode c1; while ( ( c1 = *p1++ ) != 0 ) |