filter/source/msfilter/msdffimp.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 961f6db0b647614e8221185c0e8ac661d87de9b6
Author:     Noel Grandin <noelgran...@gmail.com>
AuthorDate: Wed Dec 23 13:52:17 2020 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Wed Dec 23 17:06:26 2020 +0100

    fix ppt gradient import
    
    it is this way as far back as 2009 (couldn't see beyond that).
    Found while doing some work on verifying how degree units
    are passed around.
    
    Change-Id: I6c8839aa390825f2aab38c70d623109543fddf19
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108237
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/filter/source/msfilter/msdffimp.cxx 
b/filter/source/msfilter/msdffimp.cxx
index e3628be4411d..395822273865 100644
--- a/filter/source/msfilter/msdffimp.cxx
+++ b/filter/source/msfilter/msdffimp.cxx
@@ -1289,7 +1289,8 @@ static void ApplyRectangularGradientAsBitmap( const 
SvxMSDffManager& rManager, S
         rIn.Seek( nPos );
         if ( bRotateWithShape )
         {
-            aBitmapEx.Rotate( Degree10(nFix16Angle / 10), rShadeColors[ 0 
].aColor );
+            // convert from 100th to 10th degrees
+            aBitmapEx.Rotate( Degree10(nFix16Angle * 10), rShadeColors[ 0 
].aColor );
 
             BmpMirrorFlags nMirrorFlags = BmpMirrorFlags::NONE;
             if ( rObjData.nSpFlags & ShapeFlag::FlipV )
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to