| commit | 9deabca91c8fd899fd162f4a16a1061793e8a10e | [log] |
|---|---|---|
| author | Julien Nabet <serval2412@yahoo.fr> | Mon Oct 22 23:12:09 2018 +0200 |
| committer | Julien Nabet <serval2412@yahoo.fr> | Tue Oct 23 07:17:41 2018 +0200 |
| tree | c767f1122ea694b08dabea2e1a7f42994c132294 | |
| parent | ae9f37ba753519ae4a2ae6384d052d417359602f [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>
diff --git a/dbaccess/source/ui/browser/sbagrid.cxx b/dbaccess/source/ui/browser/sbagrid.cxx index 9f80745..4726dd8c5 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;