[Libreoffice-commits] core.git: sc/source

Jochen Nitschke j.nitschke+logerrit at ok.de
Mon Sep 11 14:36:40 UTC 2017


 sc/source/ui/view/gridwin4.cxx |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit e07e38f71c728630e993cbff5bc78c76fc02d692
Author: Jochen Nitschke <j.nitschke+logerrit at ok.de>
Date:   Mon Sep 11 01:41:36 2017 +0200

    remove constant bool variable
    
    had no meaning since introduced in
    commit 11b5e05a827851e287315345bf563fda7e24d151
    Date:   Tue Nov 14 14:57:04 2006 +0000
        INTEGRATION: CWS aw024 (1.26.134); FILE MERGED
    
    Change-Id: Ia2de3d1af4e8aa1f73fd20592aa4d9664d6fbf74
    Reviewed-on: https://gerrit.libreoffice.org/42169
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/sc/source/ui/view/gridwin4.cxx b/sc/source/ui/view/gridwin4.cxx
index 5ffe55505ddf..eb059ddd024a 100644
--- a/sc/source/ui/view/gridwin4.cxx
+++ b/sc/source/ui/view/gridwin4.cxx
@@ -1782,8 +1782,6 @@ void ScGridWindow::GetSelectionRects( ::std::vector< tools::Rectangle >& rPixelR
     PutInOrder( nX1, nX2 );
     PutInOrder( nY1, nY2 );
 
-    bool bRepeat = true;
-
     SCCOL nTestX2 = nX2;
     SCROW nTestY2 = nY2;
 
@@ -1912,7 +1910,7 @@ void ScGridWindow::GetSelectionRects( ::std::vector< tools::Rectangle >& rPixelR
                         }
                     }
 
-                    if ( aMultiMark.IsCellMarked( nThisX, nThisY, true ) == bRepeat )
+                    if ( aMultiMark.IsCellMarked( nThisX, nThisY, true ) )
                     {
                         if ( !pMergeFlag->IsOverlapped() )
                         {


More information about the Libreoffice-commits mailing list