summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2024-02-24 09:40:14 +0100
committerAndras Timar <andras.timar@collabora.com>2024-03-07 13:54:19 +0100
commite73b473c42b381eb0be86096eb9e5593bb387cb2 (patch)
tree733f6e8bfe57d1deaa245d0aaafd527e2b300c07
parentd951d92c475d4defd0ea89ccc24ecaba39ddae42 (diff)
tdf#159862: set SearchWildcard to false changes SearchRegularExpression value
Like this since 2016 with 3a0abd3019ec3ca29b8f1378cdb32ebf741e6306 add SvxSearchItem::GetWildcard() SetWildcard() Change-Id: Id988a6e58488af6b1f274a318e9d1f52c7a8b169 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163876 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Jenkins (cherry picked from commit d05e863c69b5611964a4a2eb242ee9566cfb659e) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163836 Reviewed-by: Eike Rathke <erack@redhat.com>
-rw-r--r--svl/source/items/srchitem.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svl/source/items/srchitem.cxx b/svl/source/items/srchitem.cxx
index 1300bf744afa..6aa7c36ddca2 100644
--- a/svl/source/items/srchitem.cxx
+++ b/svl/source/items/srchitem.cxx
@@ -364,7 +364,7 @@ void SvxSearchItem::SetWildcard( bool bVal )
{
m_aSearchOpt.AlgorithmType2 = SearchAlgorithms2::WILDCARD;
}
- else if ( SearchAlgorithms2::REGEXP == m_aSearchOpt.AlgorithmType2 )
+ else if ( SearchAlgorithms2::WILDCARD == m_aSearchOpt.AlgorithmType2 )
{
m_aSearchOpt.AlgorithmType2 = SearchAlgorithms2::ABSOLUTE;
}