incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject svn commit: r1358177 - /incubator/ooo/trunk/main/filter/source/msfilter/msdffimp.cxx
Date Fri, 06 Jul 2012 13:07:22 GMT
Author: af
Date: Fri Jul  6 13:07:22 2012
New Revision: 1358177

URL: http://svn.apache.org/viewvc?rev=1358177&view=rev
Log:
#i119887# Fixing import of shadow direction.

          Reported by: Li Feng Wang
          Patch by: Jianyuan Li
          Review by: Andre Fischer

Modified:
    incubator/ooo/trunk/main/filter/source/msfilter/msdffimp.cxx

Modified: incubator/ooo/trunk/main/filter/source/msfilter/msdffimp.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/filter/source/msfilter/msdffimp.cxx?rev=1358177&r1=1358176&r2=1358177&view=diff
==============================================================================
--- incubator/ooo/trunk/main/filter/source/msfilter/msdffimp.cxx (original)
+++ incubator/ooo/trunk/main/filter/source/msfilter/msdffimp.cxx Fri Jul  6 13:07:22 2012
@@ -2723,15 +2723,13 @@ void DffPropertyReader::ApplyAttributes(
 	{
 		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 ) )
 	{



Mime
View raw message