Author: af
Date: Thu Jun 21 12:36:13 2012
New Revision: 1352519

URL: http://svn.apache.org/viewvc?rev=1352519&view=rev
Log:
#i119537# Fixed extrusion of custom shapes to XLS.
          (rev. 1352497 has this same title by mistake, should refer to issue 
119903)

          Reported by: Terry Yang
          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=1352519&r1=1352518&r2=1352519&view=diff
==============================================================================
--- incubator/ooo/trunk/main/filter/source/msfilter/msdffimp.cxx (original)
+++ incubator/ooo/trunk/main/filter/source/msfilter/msdffimp.cxx Thu Jun 21 
12:36:13 2012
@@ -1994,8 +1994,8 @@ void DffPropertyReader::ApplyCustomShape
                if ( IsProperty( DFF_Prop_c3DOriginX ) || IsProperty( 
DFF_Prop_c3DOriginY ) )
                {
                        const rtl::OUString     sExtrusionOrigin( 
RTL_CONSTASCII_USTRINGPARAM ( "Origin" ) );
-                       double fOriginX = (double)((sal_Int32)GetPropertyValue( 
DFF_Prop_c3DOriginX, 0 ));
-                       double fOriginY = (double)((sal_Int32)GetPropertyValue( 
DFF_Prop_c3DOriginY, 0 ));
+                       double fOriginX = (double)((sal_Int32)GetPropertyValue( 
DFF_Prop_c3DOriginX, 32768 ));
+                       double fOriginY = (double)((sal_Int32)GetPropertyValue( 
DFF_Prop_c3DOriginY, (sal_uInt32)-32768 ));
                        fOriginX /= 65536;
                        fOriginY /= 65536;
                        EnhancedCustomShapeParameterPair aOriginPair;


Reply via email to