diff options
author | Andre Fischer <af@apache.org> | 2012-06-12 10:44:51 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-05-02 13:48:00 +0100 |
commit | a01e4aa97b086b898499b84760ac271b0cc4a479 (patch) | |
tree | 085df2c4092514e90d6a19cb0917e164eef44201 /filter/source/msfilter | |
parent | 55d2d982d0722e2ede96811d2a38ad3d70fc9d62 (diff) |
Resolves: #i119554# Fixed export of viewpoint property.
Patch by: Lei Debin
Reviewed by: Andre
(cherry picked from commit 9667c78f99156ff4dd49002da270bc610bf75920)
Change-Id: I993ee9497e5da5d0af499fcab1d203766a18a4a9
Diffstat (limited to 'filter/source/msfilter')
-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 57a761c99107..d75f020a054c 100644 --- a/filter/source/msfilter/msdffimp.cxx +++ b/filter/source/msfilter/msdffimp.cxx @@ -1856,8 +1856,8 @@ void DffPropertyReader::ApplyCustomShapeGeometryAttributes( SvStream& rIn, SfxIt // "ViewPoint" in 1/100mm if ( IsProperty( DFF_Prop_c3DXViewpoint ) || IsProperty( DFF_Prop_c3DYViewpoint ) || IsProperty( DFF_Prop_c3DZViewpoint ) ) { - double fViewX = (double)((sal_Int32)GetPropertyValue( DFF_Prop_c3DXViewpoint, 1249920 )) / 360.0; - double fViewY = (double)((sal_Int32)GetPropertyValue( DFF_Prop_c3DYViewpoint, (sal_uInt32)-1249920 ))/ 360.0; + double fViewX = (double)((sal_Int32)GetPropertyValue( DFF_Prop_c3DXViewpoint, 1250000 )) / 360.0; + double fViewY = (double)((sal_Int32)GetPropertyValue( DFF_Prop_c3DYViewpoint, (sal_uInt32)-1250000 ))/ 360.0; double fViewZ = (double)((sal_Int32)GetPropertyValue( DFF_Prop_c3DZViewpoint, 9000000 )) / 360.0; ::com::sun::star::drawing::Position3D aExtrusionViewPoint( fViewX, fViewY, fViewZ ); const OUString sExtrusionViewPoint( "ViewPoint" ); |