diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-10-24 12:42:43 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-10-24 12:42:43 +0000 |
commit | 651ad507a7ab47c4a2368ad156474f020bab15f5 (patch) | |
tree | 0e94899d5e5d8fd32e987f3d7a98e2ab45e4b136 /svx | |
parent | 4d2d3d1ad377908cbdbce3b0a82cb87aa6927aec (diff) |
INTEGRATION: CWS impress108 (1.136.10); FILE MERGED
2006/09/28 09:24:13 sj 1.136.10.1: #i69933,i69932,140295# fixed extrusion depth problem (division by zero)
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/msfilter/msdffimp.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/msfilter/msdffimp.cxx b/svx/source/msfilter/msdffimp.cxx index 074ea274ba49..ff1068eaa8b4 100644 --- a/svx/source/msfilter/msdffimp.cxx +++ b/svx/source/msfilter/msdffimp.cxx @@ -4,9 +4,9 @@ * * $RCSfile: msdffimp.cxx,v $ * - * $Revision: 1.139 $ + * $Revision: 1.140 $ * - * last change: $Author: obo $ $Date: 2006-10-13 11:22:50 $ + * last change: $Author: hr $ $Date: 2006-10-24 13:42:43 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -2228,7 +2228,7 @@ void DffPropertyReader::ApplyCustomShapeGeometryAttributes( SvStream& rIn, SfxIt double fBackDepth = (double)((sal_Int32)GetPropertyValue( DFF_Prop_c3DExtrudeBackward, 1270 * 360 )) / 360.0; double fForeDepth = (double)((sal_Int32)GetPropertyValue( DFF_Prop_c3DExtrudeForward ), 0 ) / 360.0; double fDepth = fBackDepth + fForeDepth; - double fFraction = fForeDepth / fDepth; + double fFraction = fDepth != 0.0 ? fForeDepth / fDepth : 0; EnhancedCustomShapeParameterPair aDepthParaPair; aDepthParaPair.First.Value <<= fDepth; aDepthParaPair.First.Type = EnhancedCustomShapeParameterType::NORMAL; |