diff options
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/tool/interpr1.cxx | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx index 8ea81b336641..6f3c3304e627 100644 --- a/sc/source/core/tool/interpr1.cxx +++ b/sc/source/core/tool/interpr1.cxx @@ -11455,14 +11455,7 @@ bool ScInterpreter::SearchVectorForValue( VectorSearchArguments& vsa ) if ( mrDoc.IsInVBAMode() ) rParam.eSearchType = utl::SearchParam::SearchType::Wildcard; else - { - // set searchtype hard to wildcard or regexp if applicable, the XLOOKUP - // argument prevails over the configuration setting - if ( MayBeWildcard( vsa.sSearchStr.getString() ) ) - rParam.eSearchType = utl::SearchParam::SearchType::Wildcard; - else if ( MayBeRegExp( vsa.sSearchStr.getString() ) ) - rParam.eSearchType = utl::SearchParam::SearchType::Regexp; - } + rParam.eSearchType = DetectSearchType(vsa.sSearchStr.getString(), mrDoc); } } else |