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

New commits:
commit 0f08d5cac57276d426b21a4be32648ab51bad723
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Thu Nov 14 11:42:23 2024 +0100
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Thu Nov 14 13:31:49 2024 +0100

    tdf#163486: PVS: Expression is always true
    
    V560    A part of conditional expression is always true: pFormatItem.
    
    Change-Id: I82009191496573e7f9dd1a6ab7f19df2243a30b2
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176582
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/sw/source/core/docnode/ndtbl.cxx b/sw/source/core/docnode/ndtbl.cxx
index e6005663e99a..8909fe540c32 100644
--- a/sw/source/core/docnode/ndtbl.cxx
+++ b/sw/source/core/docnode/ndtbl.cxx
@@ -4316,7 +4316,7 @@ void SwDoc::ClearBoxNumAttrs( SwNode& rNode )
 
     // Keep TextFormats!
     sal_uInt16 nWhich1 = RES_BOXATR_FORMAT;
-    if( pFormatItem && GetNumberFormatter()->IsTextFormat(
+    if( GetNumberFormatter()->IsTextFormat(
             pFormatItem->GetValue() ))
         nWhich1 = RES_BOXATR_FORMULA;
     else

Reply via email to