drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 5461ed9828b48f947f99a034d7e3d8072157c58d
Author:     Julien Nabet <serval2...@yahoo.fr>
AuthorDate: Wed Nov 24 21:50:52 2021 +0100
Commit:     Julien Nabet <serval2...@yahoo.fr>
CommitDate: Wed Nov 24 23:05:53 2021 +0100

    tdf#145874: fix "Drop deg2rad/rad2deg conversions" for gradient export in a 
pdf
    
    Regression from:
    
https://cgit.freedesktop.org/libreoffice/core/commit/?id=bc0ab08634f59e1a1814e575fe6ad5e50bf1aee1
    Drop F_PI1800/F_PI18000, and unify deg2rad/rad2deg conversions
    
    Change-Id: I40089b166242d06e417b1877146d43df192d6225
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125791
    Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com>
    Tested-by: Jenkins

diff --git a/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx 
b/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx
index 87ae848b3ca9..b679768c9c3b 100644
--- a/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx
+++ b/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx
@@ -272,7 +272,7 @@ void 
VclMetafileProcessor2D::impConvertFillGradientAttributeToVCLGradient(
     }
 
     o_rVCLGradient.SetAngle(
-        
Degree10(static_cast<sal_uInt32>(basegfx::rad2deg<100>(rFiGrAtt.getAngle()))));
+        
Degree10(static_cast<sal_uInt32>(basegfx::rad2deg<10>(rFiGrAtt.getAngle()))));
     o_rVCLGradient.SetBorder(static_cast<sal_uInt16>(rFiGrAtt.getBorder() * 
100.0));
     o_rVCLGradient.SetOfsX(static_cast<sal_uInt16>(rFiGrAtt.getOffsetX() * 
100.0));
     o_rVCLGradient.SetOfsY(static_cast<sal_uInt16>(rFiGrAtt.getOffsetY() * 
100.0));

Reply via email to