sw/source/core/layout/fly.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 80cea922912ba83baf2e2415a0328abb9edc6a00
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Thu Nov 14 11:54:29 2024 +0100
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Thu Nov 14 15:58:46 2024 +0100

    tdf#163486: PVS: Expression is always false
    
    V560    A part of conditional expression is always false: pTable == nullptr.
    
    Change-Id: Id6f9a8ff3943fecbe77a4d339b3ca76e27a86605
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176585
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/sw/source/core/layout/fly.cxx b/sw/source/core/layout/fly.cxx
index 42e7af795e73..ae7fdfae4326 100644
--- a/sw/source/core/layout/fly.cxx
+++ b/sw/source/core/layout/fly.cxx
@@ -2136,7 +2136,7 @@ bool SwFlyFrame::IsShowUnfloatButton(SwWrtShell* pWrtSh) 
const
         {
             pTable = static_cast<const SwTabFrame*>(pLower);
             ++nTableCount;
-            if (nTableCount > 1 || pTable == nullptr)
+            if (nTableCount > 1)
                 return false;
         }
 

Reply via email to