summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2012-03-03 00:48:58 +0200
committerTor Lillqvist <tml@iki.fi>2012-03-03 01:16:31 +0200
commit43b92f0940059aea04da134f70579b76ecc8480f (patch)
tree08fdd55c2e12e217be3bf078abb2aa5c0f69b2a8 /filter
parent8da131e21d44ca21c8bf494cf06a87ab2ea27292 (diff)
WaE: expression result unused
A right parenthesis was apparently misplaced, leading to the code actually containing a bogus comma expression. The GetPropertyValue() call's result was ignored and the subexpression after the comma, zero, was used instead.
Diffstat (limited to 'filter')
-rw-r--r--filter/source/msfilter/msdffimp.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/filter/source/msfilter/msdffimp.cxx b/filter/source/msfilter/msdffimp.cxx
index 471020adf5fb..176d63011672 100644
--- a/filter/source/msfilter/msdffimp.cxx
+++ b/filter/source/msfilter/msdffimp.cxx
@@ -2008,7 +2008,7 @@ void DffPropertyReader::ApplyCustomShapeGeometryAttributes( SvStream& rIn, SfxIt
{
const rtl::OUString sDepth( RTL_CONSTASCII_USTRINGPARAM ( "Depth" ) );
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 fForeDepth = (double)((sal_Int32)GetPropertyValue( DFF_Prop_c3DExtrudeForward, 0 )) / 360.0;
double fDepth = fBackDepth + fForeDepth;
double fFraction = fDepth != 0.0 ? fForeDepth / fDepth : 0;
EnhancedCustomShapeParameterPair aDepthParaPair;