svx/source/dialog/srchdlg.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 2219d42ca36ff0b49a488da9198384d8673096fa
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Sun Oct 20 20:17:10 2024 +0200
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Sun Oct 20 21:59:02 2024 +0200

    tdf#163486: PVS: identical sub-expressions
    
    Since
    commit 78010a4db197ac44fb729a122464847931ee0e5b
    Author: Caolán McNamara <caol...@redhat.com>
    Date:   Thu Oct 4 15:37:14 2018 +0100
    
        Resolves: tdf#106340 resize dialog when search/replace labels are 
shown/hidden
    
    V501    There are identical sub-expressions 
'!m_xReplaceAttrText->get_visible()' to the left and to the right of the '||' 
operator.
    V501    There are identical sub-expressions 
'!m_xReplaceAttrText->get_visible()' to the left and to the right of the '||' 
operator.
    
    Change-Id: Ib62557af291679c253162e3d72a39659691ef0b9
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175285
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>

diff --git a/svx/source/dialog/srchdlg.cxx b/svx/source/dialog/srchdlg.cxx
index ef32b558b50b..480042ea2ce7 100644
--- a/svx/source/dialog/srchdlg.cxx
+++ b/svx/source/dialog/srchdlg.cxx
@@ -1528,7 +1528,7 @@ IMPL_LINK_NOARG(SvxSearchDialog, TemplateHdl_Impl, 
weld::Toggleable&, void)
 
             if(!sDesc.isEmpty())
             {
-                if (!m_xReplaceAttrText->get_visible() || 
!m_xReplaceAttrText->get_visible())
+                if (!m_xSearchAttrText->get_visible() || 
!m_xReplaceAttrText->get_visible())
                 {
                     m_xSearchAttrText->show();
                     m_xReplaceAttrText->show();
@@ -1559,7 +1559,7 @@ IMPL_LINK_NOARG(SvxSearchDialog, TemplateHdl_Impl, 
weld::Toggleable&, void)
 
         if(!sDesc.isEmpty())
         {
-            if (!m_xReplaceAttrText->get_visible() || 
!m_xReplaceAttrText->get_visible())
+            if (!m_xSearchAttrText->get_visible() || 
!m_xReplaceAttrText->get_visible())
             {
                 m_xSearchAttrText->show();
                 m_xReplaceAttrText->show();

Reply via email to