sw/source/core/doc/DocumentRedlineManager.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 3a9d06eac4db5ac1595b8643a64d18c4a818ac96
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Mon Jul 18 16:43:50 2022 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Tue Jul 19 10:30:25 2022 +0200

    tdf#119840 remove some unnecessary comparisons
    
    Change-Id: I1c997edfa315ca86356c014c4f091423ff8d4240
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137207
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/sw/source/core/doc/DocumentRedlineManager.cxx 
b/sw/source/core/doc/DocumentRedlineManager.cxx
index 07f9fe8fcfa6..dafd8642137e 100644
--- a/sw/source/core/doc/DocumentRedlineManager.cxx
+++ b/sw/source/core/doc/DocumentRedlineManager.cxx
@@ -2498,8 +2498,7 @@ bool DocumentRedlineManager::SplitRedline( const SwPaM& 
rRange )
     {
         SwRangeRedline * pRedline = maRedlineTable[ n ];
         auto [pRedlineStart, pRedlineEnd] = pRedline->StartEnd();
-        if (*pRedlineStart <= *pStt && *pStt <= *pRedlineEnd &&
-            *pRedlineStart <= *pEnd && *pEnd <= *pRedlineEnd)
+        if (*pRedlineStart <= *pStt && *pEnd <= *pRedlineEnd)
         {
             bChg = true;
             int nn = 0;

Reply via email to