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

Add comment about precedence of Wildcards over Regex

Change-Id: I053c8ebb328aaa3b577283af17b6540b997e3dcc
üst 47cbf098
...@@ -126,6 +126,9 @@ void ScTpCalcOptions::Reset( const SfxItemSet* /* rCoreAttrs */ ) ...@@ -126,6 +126,9 @@ void ScTpCalcOptions::Reset( const SfxItemSet* /* rCoreAttrs */ )
m_pBtnMatch->Enable( !officecfg::Office::Calc::Calculate::Other::SearchCriteria::isReadOnly() ); m_pBtnMatch->Enable( !officecfg::Office::Calc::Calculate::Other::SearchCriteria::isReadOnly() );
bool bWildcards = pLocalOptions->IsFormulaWildcardsEnabled(); bool bWildcards = pLocalOptions->IsFormulaWildcardsEnabled();
bool bRegex = pLocalOptions->IsFormulaRegexEnabled(); bool bRegex = pLocalOptions->IsFormulaRegexEnabled();
// If both, Wildcards and Regex, are set then Wildcards shall take
// precedence. This is also how other code calling Search handles it. Both
// simultaneously couldn't be set using UI but editing the configuration.
if (bWildcards && bRegex) if (bWildcards && bRegex)
bRegex = false; bRegex = false;
m_pBtnWildcards->Check( bWildcards ); m_pBtnWildcards->Check( bWildcards );
......
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