diff options
author | Andre Fischer <af@apache.org> | 2012-06-21 11:36:13 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-05-23 20:04:46 +0100 |
commit | b1e751d665599eeb7445b20837c079d84de2113f (patch) | |
tree | 94e77ae17d92597e30ab6bd66e4a517e736d575a | |
parent | ab0360c309adcd131a9e6c1f02abc82486d09a46 (diff) |
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
-rw-r--r-- | filter/source/msfilter/msdffimp.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/filter/source/msfilter/msdffimp.cxx b/filter/source/msfilter/msdffimp.cxx index 637e2ab3676f..cc2dbf6e9000 100644 --- a/filter/source/msfilter/msdffimp.cxx +++ b/filter/source/msfilter/msdffimp.cxx @@ -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; |