summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2018-10-22 23:12:09 +0200
committerJulien Nabet <serval2412@yahoo.fr>2018-10-23 07:17:41 +0200
commit9deabca91c8fd899fd162f4a16a1061793e8a10e (patch)
treec767f1122ea694b08dabea2e1a7f42994c132294 /dbaccess
parentae9f37ba753519ae4a2ae6384d052d417359602f (diff)
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 <serval2412@yahoo.fr>
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/browser/sbagrid.cxx2
1 files changed, 1 insertions, 1 deletions
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;