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

Michaël Lefèvre lefevre00 at yahoo.fr
Tue Apr 21 06:16:41 PDT 2015


 dbaccess/source/ui/querydesign/JoinTableView.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 2e5af8d69f38463f4563efec3bfb177f031520a0
Author: Michaël Lefèvre <lefevre00 at yahoo.fr>
Date:   Thu Mar 12 22:09:46 2015 +0100

    CppCheck cleaning : avoid unnecessary affectation
    
    Change-Id: I3803c5898f94e2786ba6fa464b503f36f5a449ab
    Reviewed-on: https://gerrit.libreoffice.org/14847
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/dbaccess/source/ui/querydesign/JoinTableView.cxx b/dbaccess/source/ui/querydesign/JoinTableView.cxx
index fda33fa..b5e47b4 100644
--- a/dbaccess/source/ui/querydesign/JoinTableView.cxx
+++ b/dbaccess/source/ui/querydesign/JoinTableView.cxx
@@ -495,8 +495,8 @@ void OJoinTableView::EnsureVisible(const Point& _rPoint,const Size& _rSize)
         if (nScrollX)
             bVisbile = ScrollPane(nScrollX, true, true);
 
-        if (nScrollY)
-            bVisbile = bVisbile && ScrollPane(nScrollY, false, true);
+        if (nScrollY && bVisbile)
+            ScrollPane(nScrollY, false, true);
     }
 }
 


More information about the Libreoffice-commits mailing list