diff options
author | Eike Rathke <erack@redhat.com> | 2017-05-18 13:10:29 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2017-05-18 13:11:34 +0200 |
commit | e4e093b90e9a2d65cb538ec0e752ba51d75b4b0b (patch) | |
tree | 42f0e5eb4303ab6701936b85c8bcd45868732990 /sc/source/ui/optdlg | |
parent | 47cbf098ee6019a2090b2e933439fd4aa399ed20 (diff) |
Add comment about precedence of Wildcards over Regex
Change-Id: I053c8ebb328aaa3b577283af17b6540b997e3dcc
Diffstat (limited to 'sc/source/ui/optdlg')
-rw-r--r-- | sc/source/ui/optdlg/tpcalc.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/ui/optdlg/tpcalc.cxx b/sc/source/ui/optdlg/tpcalc.cxx index 5f9cc4b3dc4b..56f7d42c6c49 100644 --- a/sc/source/ui/optdlg/tpcalc.cxx +++ b/sc/source/ui/optdlg/tpcalc.cxx @@ -126,6 +126,9 @@ void ScTpCalcOptions::Reset( const SfxItemSet* /* rCoreAttrs */ ) m_pBtnMatch->Enable( !officecfg::Office::Calc::Calculate::Other::SearchCriteria::isReadOnly() ); bool bWildcards = pLocalOptions->IsFormulaWildcardsEnabled(); 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) bRegex = false; m_pBtnWildcards->Check( bWildcards ); |