summaryrefslogtreecommitdiff
path: root/svx/source
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2018-08-03 07:46:40 +0200
committerMike Kaganski <mike.kaganski@collabora.com>2018-08-03 10:21:03 +0200
commit47eaea7d82377b910e98826fc2202e839c8b45e8 (patch)
treef89fc190665aa02e20e886ac9f9d2d34f2a821ca /svx/source
parent071d14324c2c5c85ed8fe7a0e8bb2ae77d1538f9 (diff)
NormAngle180: avoid two extra operations
Change-Id: Ib661c57c652c407baef3b6b7390be731fa83ab5d Reviewed-on: https://gerrit.libreoffice.org/58545 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'svx/source')
-rw-r--r--svx/source/svdraw/svdtrans.cxx2
1 files changed, 1 insertions, 1 deletions
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;
}