dbaccess/source/ui/browser/sbagrid.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 9deabca91c8fd899fd162f4a16a1061793e8a10e
Author:     Julien Nabet <serval2...@yahoo.fr>
AuthorDate: Mon Oct 22 23:12:09 2018 +0200
Commit:     Julien Nabet <serval2...@yahoo.fr>
CommitDate: Tue Oct 23 07:17:41 2018 +0200

    tdf#120773: simplify condition in sbagrid.cxx:1265
    
    Change-Id: If907fe0310f4983ddf1917c6ca88f2cebf4c45aa
    Reviewed-on: https://gerrit.libreoffice.org/62206
    Tested-by: Jenkins
    Reviewed-by: Julien Nabet <serval2...@yahoo.fr>

diff --git a/dbaccess/source/ui/browser/sbagrid.cxx 
b/dbaccess/source/ui/browser/sbagrid.cxx
index 9f80745f3a11..4726dd8c58f6 100644
--- a/dbaccess/source/ui/browser/sbagrid.cxx
+++ b/dbaccess/source/ui/browser/sbagrid.cxx
@@ -1262,7 +1262,7 @@ sal_Int8 SbaGridControl::AcceptDrop( const 
BrowserAcceptDropEvent& rEvt )
         if (IsCurrentAppending())
             --nCorrectRowCount; // the current data record doesn't really 
exist, we are appending a new one
 
-        if ((nCol == BROWSER_INVALIDID) || (nRow >= nCorrectRowCount) || nCol 
== 0  || nCol == BROWSER_INVALIDID )
+        if ( (nCol == BROWSER_INVALIDID) || (nRow >= nCorrectRowCount) || 
(nCol == 0) )
             // no valid cell under the mouse cursor
             break;
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to