svx/source/table/tablelayouter.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit c30e8ba6f14125d1ca0cbd2fa370e9d204cccea2 Author: Caolán McNamara <[email protected]> Date: Wed Nov 8 11:02:09 2017 +0000 ofz#4072 Integer-overflow Change-Id: Ib4abb390b9846240b663777f0dee126e16e49dcf Reviewed-on: https://gerrit.libreoffice.org/44452 Tested-by: Jenkins <[email protected]> Reviewed-by: Caolán McNamara <[email protected]> Tested-by: Caolán McNamara <[email protected]> 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; } }
_______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
