sw/source/filter/ww8/wrtww8.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 9fb20b53416fdaabf50861941aed7f9b9e510478
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Wed Oct 23 00:50:01 2024 +0200
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Wed Oct 23 10:00:43 2024 +0200

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

diff --git a/sw/source/filter/ww8/wrtww8.cxx b/sw/source/filter/ww8/wrtww8.cxx
index cf0e047dd9c2..5019c8c5f329 100644
--- a/sw/source/filter/ww8/wrtww8.cxx
+++ b/sw/source/filter/ww8/wrtww8.cxx
@@ -2106,11 +2106,11 @@ static sal_uInt16 lcl_TCFlags(SwDoc &rDoc, const 
SwTableBox * pBox, sal_Int32 nR
                     0, static_cast<const 
SwTextNode*>(pCNd)->GetText().getLength());
                 if ( const SvxCharRotateItem * pRotate = 
aCoreSet.GetItemIfSet(RES_CHRATR_ROTATE))
                 {
-                    if(pRotate && pRotate->GetValue() == 900_deg10)
+                    if(pRotate->GetValue() == 900_deg10)
                     {
                         nFlags = nFlags | 0x0004 | 0x0008;
                     }
-                    else if(pRotate && pRotate->GetValue() == 2700_deg10 )
+                    else if(pRotate->GetValue() == 2700_deg10 )
                     {
                         nFlags = nFlags | 0x0004 | 0x0010;
                     }

Reply via email to