[Libreoffice-commits] core.git: sd/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Fri Jul 19 07:43:07 UTC 2019
sd/source/filter/eppt/epptso.cxx | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
New commits:
commit 21ac405d723448d4f725715d27b58015f4bb5764
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Jul 18 11:41:12 2019 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Jul 19 09:42:23 2019 +0200
cid#1448229 Division or modulo by zero
Change-Id: I8d1d7415c82c7d48f8d4bdf7b86e397fce01c015
Reviewed-on: https://gerrit.libreoffice.org/75908
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/sd/source/filter/eppt/epptso.cxx b/sd/source/filter/eppt/epptso.cxx
index bcd4d1cf9711..d477bb2655c4 100644
--- a/sd/source/filter/eppt/epptso.cxx
+++ b/sd/source/filter/eppt/epptso.cxx
@@ -1790,7 +1790,12 @@ void PPTWriter::ImplWritePage( const PHLayout& rLayout, EscherSolverContainer& a
if ( nRadius >= nLength )
nRadius = 0x2a30; // 0x2a30 is PPTs maximum radius
else
- nRadius = ( 0x2a30 * nRadius ) / nLength;
+ {
+ if (nLength != 0)
+ nRadius = ( 0x2a30 * nRadius ) / nLength;
+ else
+ nRadius = 0x2a30; // 0x2a30 is PPTs maximum radius
+ }
aPropOpt.AddOpt( ESCHER_Prop_adjustValue, nRadius );
}
else
More information about the Libreoffice-commits
mailing list