sw/source/uibase/app/docstyle.cxx |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

New commits:
commit 1dc8b2b9ce4c5cee03c5fec49658fa363a00341b
Author:     Noel Grandin <noelgran...@gmail.com>
AuthorDate: Mon Oct 31 08:02:07 2022 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Mon Oct 31 10:19:58 2022 +0100

    simplify logic
    
    we know bSearchUsed is already false here. It has been this way since 
initial commit.
    
    Change-Id: I598b02fedaa71f07d6f24928c5b9d56761970e3a
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142055
    Tested-by: Noel Grandin <noel.gran...@collabora.co.uk>
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/sw/source/uibase/app/docstyle.cxx 
b/sw/source/uibase/app/docstyle.cxx
index 6c9fad20bb54..eb80794d7ea5 100644
--- a/sw/source/uibase/app/docstyle.cxx
+++ b/sw/source/uibase/app/docstyle.cxx
@@ -2657,10 +2657,9 @@ SfxStyleSheetBase* SwDocStyleSheetPool::Find(const 
OUString& rName,
                         : static_cast<const 
SwFormat*>(pMod)->GetPoolFormatId();
 
         if( ( nSMask & ~SfxStyleSearchBits::Used) == 
SfxStyleSearchBits::UserDefined
-            ? !(nId & USER_FMT)
+            && !(nId & USER_FMT) )
                 // searched for used and found none
-            : bSearchUsed )
-            bFnd = false;
+                bFnd = false;
     }
     return bFnd ? mxStyleSheet.get() : nullptr;
 }

Reply via email to