summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2016-05-10 22:52:02 +0200
committerEike Rathke <erack@redhat.com>2016-05-11 11:30:59 +0000
commit40222365ceb2e16b75a16a3837da1cb27d1c2224 (patch)
treee999e96d6290aa1b9568aae9a636519b255faf9e /sc
parent84987b8cdccfd76ca5c231513770850de6436201 (diff)
-Werror=strict-overflow
sc/source/core/data/markmulti.cxx:242:50: assuming signed overflow does not occur when assuming that (X + c) >= X is always true from gcc (Debian 5.3.1-17) while ( nBeg != MAXROWCOUNT && nLast < nEndRow ) Change-Id: Ic547a65d321577924c84b2b01b5cb2fa2ed31f8e Reviewed-on: https://gerrit.libreoffice.org/24863 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/markmulti.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/markmulti.cxx b/sc/source/core/data/markmulti.cxx
index abbe87e7a1e6..ea1eb5be17a9 100644
--- a/sc/source/core/data/markmulti.cxx
+++ b/sc/source/core/data/markmulti.cxx
@@ -222,7 +222,7 @@ void ScMultiSel::SetMarkArea( SCCOL nStartCol, SCCOL nEndCol, SCROW nStartRow, S
// and move row marks from aRowSel to aMultiSelContainer
if ( !bMark && aRowSel.HasMarks() )
{
- SCROW nBeg, nLast = nEndRow + 1;
+ SCROW nBeg, nLast = nEndRow;
if ( aRowSel.GetMark( nStartRow ) )
{
nBeg = nStartRow;