From 2c9708cbb870483a8a1c93d722085be5f789d234 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 3 Jan 2021 20:35:18 +0200 Subject: Wink -> Angle Change-Id: Ia4a191eafef3de205114671253ce485780e7dde1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108642 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svx/source/svdraw/svddrgmt.cxx | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'svx/source/svdraw/svddrgmt.cxx') diff --git a/svx/source/svdraw/svddrgmt.cxx b/svx/source/svdraw/svddrgmt.cxx index 59381718eb22..cb07133b8390 100644 --- a/svx/source/svdraw/svddrgmt.cxx +++ b/svx/source/svdraw/svddrgmt.cxx @@ -3136,59 +3136,59 @@ void SdrDragCrook::MoveSdrDrag(const Point& rPnt) if (bValid) { double a=0; // slope of the radius - Degree100 nPntWink(0); + Degree100 nPntAngle(0); if (bVertical) { a=static_cast(dy1)/static_cast(dx1); // slope of the radius nNewRad=(static_cast(dy1*a)+dx1) /2; aNewCenter.AdjustX(nNewRad ); - nPntWink=GetAngle(aPnt-aNewCenter); + nPntAngle=GetAngle(aPnt-aNewCenter); } else { a=static_cast(dx1)/static_cast(dy1); // slope of the radius nNewRad=(static_cast(dx1*a)+dy1) /2; aNewCenter.AdjustY(nNewRad ); - nPntWink=GetAngle(aPnt-aNewCenter)-9000_deg100; + nPntAngle=GetAngle(aPnt-aNewCenter)-9000_deg100; } if (!bAtCenter) { if (nNewRad<0) { - if (bRgt) nPntWink += 18000_deg100; - if (bLft) nPntWink = 18000_deg100 - nPntWink; - if (bLwr) nPntWink =- nPntWink; + if (bRgt) nPntAngle += 18000_deg100; + if (bLft) nPntAngle = 18000_deg100 - nPntAngle; + if (bLwr) nPntAngle =- nPntAngle; } else { - if (bRgt) nPntWink = -nPntWink; - if (bUpr) nPntWink = 18000_deg100 - nPntWink; - if (bLwr) nPntWink += 18000_deg100; + if (bRgt) nPntAngle = -nPntAngle; + if (bUpr) nPntAngle = 18000_deg100 - nPntAngle; + if (bLwr) nPntAngle += 18000_deg100; } - nPntWink=NormAngle36000(nPntWink); + nPntAngle=NormAngle36000(nPntAngle); } else { - if (nNewRad<0) nPntWink += 18000_deg100; - if (bVertical) nPntWink = 18000_deg100 - nPntWink; - nPntWink = NormAngle18000(nPntWink); - nPntWink = abs(nPntWink); + if (nNewRad<0) nPntAngle += 18000_deg100; + if (bVertical) nPntAngle = 18000_deg100 - nPntAngle; + nPntAngle = NormAngle18000(nPntAngle); + nPntAngle = abs(nPntAngle); } double nCircumference = 2 * std::abs(nNewRad) * M_PI; if (bResize) { - tools::Long nMul=static_cast(nCircumference * NormAngle36000(nPntWink).get() / 36000.0); + tools::Long nMul=static_cast(nCircumference * NormAngle36000(nPntAngle).get() / 36000.0); if (bAtCenter) nMul*=2; aNewFract=Fraction(nMul,nMarkSize); - nAngle=nPntWink; + nAngle=nPntAngle; } else { -- cgit