[Libreoffice-commits] core.git: filter/source
Andre Fischer
af at apache.org
Thu May 2 05:48:59 PDT 2013
filter/source/msfilter/msdffimp.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit a01e4aa97b086b898499b84760ac271b0cc4a479
Author: Andre Fischer <af at apache.org>
Date: Tue Jun 12 10:44:51 2012 +0000
Resolves: #i119554# Fixed export of viewpoint property.
Patch by: Lei Debin
Reviewed by: Andre
(cherry picked from commit 9667c78f99156ff4dd49002da270bc610bf75920)
Change-Id: I993ee9497e5da5d0af499fcab1d203766a18a4a9
diff --git a/filter/source/msfilter/msdffimp.cxx b/filter/source/msfilter/msdffimp.cxx
index 57a761c..d75f020 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" );
More information about the Libreoffice-commits
mailing list