diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-11-08 11:02:09 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-11-08 14:23:58 +0100 |
commit | c30e8ba6f14125d1ca0cbd2fa370e9d204cccea2 (patch) | |
tree | 8694cd42cd9de448e4f77417e3352ddd93c0607c /svx | |
parent | e9e66c61b7de921a7fefebb3bd07afefaec8e2de (diff) |
ofz#4072 Integer-overflow
Change-Id: Ib4abb390b9846240b663777f0dee126e16e49dcf
Reviewed-on: https://gerrit.libreoffice.org/44452
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.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/table/tablelayouter.cxx b/svx/source/table/tablelayouter.cxx index ea60278755d7..81d05ffb4cfb 100644 --- a/svx/source/table/tablelayouter.cxx +++ b/svx/source/table/tablelayouter.cxx @@ -451,7 +451,7 @@ sal_Int32 TableLayouter::distribute( LayoutVector& rLayouts, sal_Int32 nDistribu { sal_Int32 nDiff(0); bConstrainsBroken |= o3tl::checked_sub(rLayout.mnMinSize, rLayout.mnSize, nDiff); - nDistribute -= nDiff; + bConstrainsBroken |= o3tl::checked_sub(nDistribute, nDiff, nDistribute); rLayout.mnSize = rLayout.mnMinSize; } } |