summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-11-03 09:15:04 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-11-03 16:08:46 +0100
commitbb90e3c28389ec411f6bcd94add4770990bf2f14 (patch)
tree81afcbf9d4fd7874547835e7df6c381f80924f6f /svx
parent08434e96efb1706a62893a3812299cc3c750a9f1 (diff)
ofz#4034 Integer-overflow
Change-Id: Ia126933260ea017f7cfdc8ac2ddc43b16aa37b91 Reviewed-on: https://gerrit.libreoffice.org/44248 Tested-by: Jenkins <ci@libreoffice.org> 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 4823f6a8ef92..fb01fec34282 100644
--- a/svx/source/table/tablelayouter.cxx
+++ b/svx/source/table/tablelayouter.cxx
@@ -637,7 +637,7 @@ void TableLayouter::LayoutTableWidth( tools::Rectangle& rArea, bool bFit )
while( coliter.next(nCol ) )
{
maColumns[nCol].mnPos = nNewWidth;
- nNewWidth += maColumns[nCol].mnSize;
+ nNewWidth = o3tl::saturating_add(nNewWidth, maColumns[nCol].mnSize);
if( bFit )
{
Reference< XPropertySet > xColSet( xCols->getByIndex(nCol), UNO_QUERY_THROW );