svl/source/items/srchitem.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 0e803a23b8a1c4c66cdd3cef00252867ba9a1193
Author:     Julien Nabet <serval2...@yahoo.fr>
AuthorDate: Sat Feb 24 09:40:14 2024 +0100
Commit:     Eike Rathke <er...@redhat.com>
CommitDate: Mon Feb 26 17:56:04 2024 +0100

    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 <serval2...@yahoo.fr>
    Tested-by: Jenkins
    (cherry picked from commit d05e863c69b5611964a4a2eb242ee9566cfb659e)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163836
    Reviewed-by: Eike Rathke <er...@redhat.com>

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;
     }

Reply via email to