summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sd/source/filter/eppt/epptso.cxx7
1 files changed, 6 insertions, 1 deletions
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