sw: avoid EXCEPTION_INT_DIVIDE_BY_ZERO
commitb44c53bd1c39aacc58987c9f77a1e3d0638da0fc
authorXisco Fauli <xiscofauli@libreoffice.org>
Tue, 31 May 2022 11:29:00 +0000 (31 13:29 +0200)
committerChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Wed, 1 Jun 2022 20:44:26 +0000 (1 22:44 +0200)
tree742ca952347d576ada403954cc4cc1d744fa3ed8
parenta994ee5b1f1270eefbe1b3e9b7a5cf866ba924d9
sw: avoid EXCEPTION_INT_DIVIDE_BY_ZERO

See https://crashreport.libreoffice.org/stats/signature/SwFormatCol::Calc(unsigned%20short,unsigned%20short)

Change-Id: I79321737b7bed3acff3418d0b51dc6225baaf57f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135184
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
(cherry picked from commit ea4cd397300120a0f825752182eb3b943eb8a1b2)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135254
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
(cherry picked from commit 6bbc42687b795b6279b1b96bb721991f90eca4da)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135259
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
sw/source/core/layout/atrfrm.cxx