Resolves: #i119537# Fixed extrusion of custom shapes to XLS

Reported by: Terry Yang
Patch by: Jianyuan Li
Review by: Andre Fischer
(cherry picked from commit 8954201783be3d0479dfa2338116427a17f0dab4)

Conflicts:
	filter/source/msfilter/msdffimp.cxx

Change-Id: I994a2b14877c4e291d622665ec3f4a8ea9f3041b
This commit is contained in:
Andre Fischer
2012-06-21 11:36:13 +00:00
committed by Caolán McNamara
parent ab0360c309
commit b1e751d665

View File

@@ -1826,8 +1826,8 @@ void DffPropertyReader::ApplyCustomShapeGeometryAttributes( SvStream& rIn, SfxIt
if ( IsProperty( DFF_Prop_c3DOriginX ) || IsProperty( DFF_Prop_c3DOriginY ) )
{
const OUString sExtrusionOrigin( "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;