diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2020-12-23 13:52:17 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-12-23 17:06:26 +0100 |
commit | 961f6db0b647614e8221185c0e8ac661d87de9b6 (patch) | |
tree | 7776db1772c58b597efd5dfe7d273a9036ea2db9 /filter/source/msfilter/msdffimp.cxx | |
parent | 4cd4726e9d97e9785140c809d2154357d5d15837 (diff) |
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@collabora.co.uk>
Diffstat (limited to 'filter/source/msfilter/msdffimp.cxx')
-rw-r--r-- | filter/source/msfilter/msdffimp.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
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 ) |