sw/source/filter/ww8/docxtableexport.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 7c5476ada992ed6dc4759c18af9de0042a6b66eb
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Tue Oct 22 12:36:51 2024 +0200
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Wed Nov 13 15:24:10 2024 +0100

    tdf#163486 PVS: identical sub-expressions
    
    Since
    commit 85a47bbb8340e65a19dc1ceaac768902a771ee77
    Author: László Németh <nem...@numbertext.org>
    Date:   Fri May 12 17:03:57 2023 +0200
    
        tdf#155328 sw tracked table column: add DOCX export/import
    
    V501 There are identical sub-expressions 
'pRedline->GetRedlineData().GetType()' to the left and to the right of the '==' 
operator.
    
    Change-Id: Ib53d20f102e64cd716245d558d6fd7754f62d9a1
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175403
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/sw/source/filter/ww8/docxtableexport.cxx 
b/sw/source/filter/ww8/docxtableexport.cxx
index 8f56d3af9d9f..d8ee80836b0f 100644
--- a/sw/source/filter/ww8/docxtableexport.cxx
+++ b/sw/source/filter/ww8/docxtableexport.cxx
@@ -737,7 +737,8 @@ void DocxAttributeOutput::TableCellRedline(
         const SwRedlineData& aRedlineData
             = bIsInExtra &&
                       // still the same type (an inserted cell could become a 
tracked deleted one)
-                      pRedline->GetRedlineData().GetType() == 
pRedline->GetRedlineData().GetType()
+                      pTableCellRedline->GetRedlineData().GetType()
+                          == pRedline->GetRedlineData().GetType()
                   ? pTableCellRedline->GetRedlineData()
                   : pRedline->GetRedlineData();
 

Reply via email to