[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-5.1' - oox/source

Andras Timar andras.timar at collabora.com
Mon Jan 2 12:57:40 UTC 2017


 oox/source/export/drawingml.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit b17fd3f8b0682de505884554e17be5c5db950942
Author: Andras Timar <andras.timar at collabora.com>
Date:   Wed Dec 28 09:56:59 2016 +0100

    tdf#104539 dir attribute of outerShdw has to be non-negative
    
    Change-Id: Ic6f1c8555eb8d137ced2f4e87baa866df84c69ac
    Reviewed-on: https://gerrit.libreoffice.org/32472
    Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>
    Tested-by: Miklos Vajna <vmiklos at collabora.co.uk>

diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx
index b320eed..3070af1 100644
--- a/oox/source/export/drawingml.cxx
+++ b/oox/source/export/drawingml.cxx
@@ -2897,7 +2897,7 @@ void DrawingML::WriteShapeEffects( Reference< XPropertySet > rXPropSet )
             aShadowAttribsGrabBag[0].Name = "dist";
             aShadowAttribsGrabBag[0].Value = Any(static_cast< sal_Int32 >(sqrt(dX*dX + dY*dY) * 360));
             aShadowAttribsGrabBag[1].Name = "dir";
-            aShadowAttribsGrabBag[1].Value = Any(static_cast< sal_Int32 >(atan2(dY,dX) * 180 * 60000 / M_PI));
+            aShadowAttribsGrabBag[1].Value = Any((static_cast< sal_Int32 >(atan2(dY,dX) * 180 * 60000 / M_PI) + 21600000) % 21600000);
 
             aShadowGrabBag[0].Name = "Attribs";
             aShadowGrabBag[0].Value = Any(aShadowAttribsGrabBag);


More information about the Libreoffice-commits mailing list