Author: af
Date: Tue Jun 12 11:44:51 2012
New Revision: 1349274

URL: http://svn.apache.org/viewvc?rev=1349274&view=rev
Log:
#i119554# Fixed export of viewpoint property.

          Patch by: Lei Debin
          Reviewed by: Andre


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=1349274&r1=1349273&r2=1349274&view=diff
==============================================================================
--- incubator/ooo/trunk/main/filter/source/msfilter/msdffimp.cxx (original)
+++ incubator/ooo/trunk/main/filter/source/msfilter/msdffimp.cxx Tue Jun 12 
11:44:51 2012
@@ -1981,8 +1981,8 @@ void DffPropertyReader::ApplyCustomShape
                // "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 rtl::OUString     sExtrusionViewPoint( 
RTL_CONSTASCII_USTRINGPARAM ( "ViewPoint" ) );


Reply via email to