[Libreoffice-commits] core.git: filter/source
Noel Grandin (via logerrit)
logerrit at kemper.freedesktop.org
Wed Dec 23 16:07:16 UTC 2020
filter/source/msfilter/msdffimp.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 961f6db0b647614e8221185c0e8ac661d87de9b6
Author: Noel Grandin <noelgrandin at gmail.com>
AuthorDate: Wed Dec 23 13:52:17 2020 +0200
Commit: Noel Grandin <noel.grandin at 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.grandin at 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 )
More information about the Libreoffice-commits
mailing list