Kaydet (Commit) 47eaea7d authored tarafından Mike Kaganski's avatar Mike Kaganski

NormAngle180: avoid two extra operations

Change-Id: Ib661c57c652c407baef3b6b7390be731fa83ab5d
Reviewed-on: https://gerrit.libreoffice.org/58545
Tested-by: Jenkins
Reviewed-by: 's avatarMike Kaganski <mike.kaganski@collabora.com>
üst 071d1432
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment