[Libreoffice-commits] core.git: svx/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri Aug 3 08:21:30 UTC 2018


 svx/source/svdraw/svdtrans.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 47eaea7d82377b910e98826fc2202e839c8b45e8
Author:     Mike Kaganski <mike.kaganski at collabora.com>
AuthorDate: Fri Aug 3 07:46:40 2018 +0200
Commit:     Mike Kaganski <mike.kaganski at collabora.com>
CommitDate: Fri Aug 3 10:21:03 2018 +0200

    NormAngle180: avoid two extra operations
    
    Change-Id: Ib661c57c652c407baef3b6b7390be731fa83ab5d
    Reviewed-on: https://gerrit.libreoffice.org/58545
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kaganski at collabora.com>

diff --git a/svx/source/svdraw/svdtrans.cxx b/svx/source/svdraw/svdtrans.cxx
index d039b68afae9..58deac96de04 100644
--- a/svx/source/svdraw/svdtrans.cxx
+++ b/svx/source/svdraw/svdtrans.cxx
@@ -396,7 +396,7 @@ long GetAngle(const Point& rPnt)
 
 long NormAngle180(long a)
 {
-    while (a<18000) a+=36000;
+    while (a<-18000) a+=36000;
     while (a>=18000) a-=36000;
     return a;
 }


More information about the Libreoffice-commits mailing list