summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorAndre Fischer <af@apache.org>2012-07-06 12:07:22 +0000
committerXisco Fauli <anistenis@gmail.com>2013-03-26 00:56:24 +0100
commitc789d126aacda9c5d2ccf3c51d669b1796180f66 (patch)
treeef892450db738fe18f7a1c3b801f5e6251a26f01 /filter
parentcf4260b85213b263f78c51d33557176c813989ef (diff)
#i119887# Fixing import of shadow direction.
Reported by: Li Feng Wang Patch by: Jianyuan Li Review by: Andre Fischer
Diffstat (limited to 'filter')
-rw-r--r--filter/source/msfilter/msdffimp.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/filter/source/msfilter/msdffimp.cxx b/filter/source/msfilter/msdffimp.cxx
index 96b69b7ab503..cf760ef76df5 100644
--- a/filter/source/msfilter/msdffimp.cxx
+++ b/filter/source/msfilter/msdffimp.cxx
@@ -2604,15 +2604,13 @@ void DffPropertyReader::ApplyAttributes( SvStream& rIn, SfxItemSet& rSet, DffObj
{
sal_Int32 nVal = static_cast< sal_Int32 >( GetPropertyValue( DFF_Prop_shadowOffsetX ) );
rManager.ScaleEmu( nVal );
- if ( nVal )
- rSet.Put( SdrShadowXDistItem( nVal ) );
+ rSet.Put( SdrShadowXDistItem( nVal ) );
}
if ( IsProperty( DFF_Prop_shadowOffsetY ) )
{
sal_Int32 nVal = static_cast< sal_Int32 >( GetPropertyValue( DFF_Prop_shadowOffsetY ) );
rManager.ScaleEmu( nVal );
- if ( nVal )
- rSet.Put( SdrShadowYDistItem( nVal ) );
+ rSet.Put( SdrShadowYDistItem( nVal ) );
}
if ( IsProperty( DFF_Prop_fshadowObscured ) )
{