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

New commits:
commit f31f11f3222933dbc96dc672e6fa52233cda12be
Author:     Michael Stahl <michael.st...@allotropia.de>
AuthorDate: Wed Jun 15 15:06:59 2022 +0200
Commit:     Michael Stahl <michael.st...@allotropia.de>
CommitDate: Wed Jun 15 21:26:29 2022 +0200

    sw: fix odd m_bCanGroup check in SwUndoRedlineDelete
    
    This looks like copypasta, presumably both flags must be true to allow
    grouping.
    
    Change-Id: I96afeac98f94b122a3b1a155940776a3aa44b0a2
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135908
    Tested-by: Jenkins
    Reviewed-by: Michael Stahl <michael.st...@allotropia.de>

diff --git a/sw/source/core/undo/unredln.cxx b/sw/source/core/undo/unredln.cxx
index eae6577d52ff..e48255c3ab5b 100644
--- a/sw/source/core/undo/unredln.cxx
+++ b/sw/source/core/undo/unredln.cxx
@@ -256,7 +256,7 @@ bool SwUndoRedlineDelete::CanGrouping( const 
SwUndoRedlineDelete& rNext )
 {
     bool bRet = false;
     if( SwUndoId::DELETE == mnUserId && mnUserId == rNext.mnUserId &&
-        m_bCanGroup == rNext.m_bCanGroup &&
+        m_bCanGroup && rNext.m_bCanGroup &&
         m_bIsDelim == rNext.m_bIsDelim &&
         m_bIsBackspace == rNext.m_bIsBackspace &&
         m_nSttNode == m_nEndNode &&

Reply via email to