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

New commits:
commit e8d997c0cba3695eaeecc3513f695ddcf9dd954e
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Sun Oct 20 20:17:10 2024 +0200
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Mon Oct 21 10:28:28 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/+/175269
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>
    Tested-by: Jenkins

diff --git a/svx/source/dialog/srchdlg.cxx b/svx/source/dialog/srchdlg.cxx
index f614a8a9aeb7..78704d415d6c 100644
--- a/svx/source/dialog/srchdlg.cxx
+++ b/svx/source/dialog/srchdlg.cxx
@@ -1532,7 +1532,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();
@@ -1563,7 +1563,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