diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-10-21 08:56:06 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-10-21 08:56:29 +0200 |
commit | 43327878920f424f8bac1114bee51c54609796c5 (patch) | |
tree | 7e1080d97a090ab70bb1054ad17c3601d60bbb0c /svx/source/svdraw/svdtrans.cxx | |
parent | 42a05b4b2aa980cc8443813e6ab903034f9f4dbc (diff) |
nShearWink -> nShearAngle
Change-Id: I122f16783db4025b9335ed82a12f051516d98d4c
Diffstat (limited to 'svx/source/svdraw/svdtrans.cxx')
-rw-r--r-- | svx/source/svdraw/svdtrans.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/svdraw/svdtrans.cxx b/svx/source/svdraw/svdtrans.cxx index 195abe60fcb3..8cc4c730a08c 100644 --- a/svx/source/svdraw/svdtrans.cxx +++ b/svx/source/svdraw/svdtrans.cxx @@ -456,10 +456,10 @@ void GeoStat::RecalcSinCos() void GeoStat::RecalcTan() { - if (nShearWink==0) { + if (nShearAngle==0) { nTan=0.0; } else { - double a=nShearWink*nPi180; + double a=nShearAngle*nPi180; nTan=tan(a); } } @@ -474,7 +474,7 @@ Polygon Rect2Poly(const Rectangle& rRect, const GeoStat& rGeo) aPol[2]=rRect.BottomRight(); aPol[3]=rRect.BottomLeft(); aPol[4]=rRect.TopLeft(); - if (rGeo.nShearWink!=0) ShearPoly(aPol,rRect.TopLeft(),rGeo.nTan); + if (rGeo.nShearAngle!=0) ShearPoly(aPol,rRect.TopLeft(),rGeo.nTan); if (rGeo.nRotationAngle!=0) RotatePoly(aPol,rRect.TopLeft(),rGeo.nSin,rGeo.nCos); return aPol; } @@ -512,7 +512,7 @@ void Poly2Rect(const Polygon& rPol, Rectangle& rRect, GeoStat& rGeo) } if (nShW<-SDRMAXSHEAR) nShW=-SDRMAXSHEAR; // limit ShearWinkel (shear angle) to +/- 89.00 deg if (nShW>SDRMAXSHEAR) nShW=SDRMAXSHEAR; - rGeo.nShearWink=nShW; + rGeo.nShearAngle=nShW; rGeo.RecalcTan(); Point aRU(aPt0); aRU.X()+=nWdt; |