diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-07-24 17:31:30 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-07-24 17:34:40 -0400 |
commit | 77ea585350f96ad912b4cdc66ba8b04a988c5fe8 (patch) | |
tree | f61a75efca6125f694b689506e5aac50b936c8f2 /oox | |
parent | c3916303ebe63f9910cd2a4a38ac6a8d6ccee3e0 (diff) |
Remove compiler warning.
nTransparancy will be left uninitialized if unstuffing the value from
the Any value fails.
Change-Id: I06a5853066edeb39b811bf12fd09afbc11792add
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/export/drawingml.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx index 6b25c577134f..0e5fb0ff71fb 100644 --- a/oox/source/export/drawingml.cxx +++ b/oox/source/export/drawingml.cxx @@ -2301,9 +2301,9 @@ void DrawingML::WriteShapeEffect( const OUString& sName, const Sequence< Propert else if(aEffectProps[i].Name == "RgbClrTransparency") { sal_Int32 nTransparency; - aEffectProps[i].Value >>= nTransparency; - // Calculate alpha value (see oox/source/drawingml/color.cxx : getTransparency()) - nAlpha = MAX_PERCENT - ( PER_PERCENT * nTransparency ); + if (aEffectProps[i].Value >>= nTransparency) + // Calculate alpha value (see oox/source/drawingml/color.cxx : getTransparency()) + nAlpha = MAX_PERCENT - ( PER_PERCENT * nTransparency ); } else if(aEffectProps[i].Name == "SchemeClr") { |