summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-11-07 09:03:26 +0000
committerCaolán McNamara <caolanm@redhat.com>2018-11-07 12:58:49 +0100
commit577d4f115fd607d36ad574872f187b7c08223ace (patch)
tree24b05b898e4a9fbe9afb4c62c4c79aec7cafa5de /svx
parent5404f75a2fa863b97bdf8432f647053f0bff726e (diff)
ofz#11274 integer-overflow
Change-Id: I826088ed85f2503e41315aacc72947a41dc9cd26 Reviewed-on: https://gerrit.libreoffice.org/62992 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/table/tablelayouter.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/table/tablelayouter.cxx b/svx/source/table/tablelayouter.cxx
index 076a0f6ed40a..4012f2fa429a 100644
--- a/svx/source/table/tablelayouter.cxx
+++ b/svx/source/table/tablelayouter.cxx
@@ -825,7 +825,7 @@ void TableLayouter::LayoutTableHeight( tools::Rectangle& rArea, bool bFit )
}
}
if( bChanges )
- nCurrentHeight += maRows[nRow].mnSize - nOldSize;
+ nCurrentHeight = o3tl::saturating_add(nCurrentHeight, maRows[nRow].mnSize - nOldSize);
}
// now scale if wanted and needed