diff options
Diffstat (limited to 'svx/source/table/tablelayouter.cxx')
-rw-r--r-- | svx/source/table/tablelayouter.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/table/tablelayouter.cxx b/svx/source/table/tablelayouter.cxx index 63ca7b8c1bcc..4823f6a8ef92 100644 --- a/svx/source/table/tablelayouter.cxx +++ b/svx/source/table/tablelayouter.cxx @@ -472,11 +472,11 @@ sal_Int32 TableLayouter::distribute( LayoutVector& rLayouts, sal_Int32 nDistribu if (nIndex != (nCount-1)) { bConstrainsBroken |= o3tl::checked_multiply(nDistribute, rLayout.mnSize, n); - n /= nCurrentWidth; + n /= nCurrentWidth; } + bConstrainsBroken |= o3tl::checked_add(rLayout.mnSize, n, rLayout.mnSize); nDistributed -= n; - rLayout.mnSize += n; if( rLayout.mnSize < rLayout.mnMinSize ) bConstrainsBroken = true; |