summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdotxdr.cxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2014-10-15 07:53:32 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-10-15 09:01:16 +0200
commitda77897d1923137574fd3a5a65921a5dbaf0aafc (patch)
tree6dda3a841b59456bf5af6a3db214b10e6eec6830 /svx/source/svdraw/svdotxdr.cxx
parentb11968e8bfcc1c4560427a9ca1d9e20a1075eb1b (diff)
nDrehWink -> nRotationAngle
Change-Id: I33ca88f38210140931b12a05e426d1373243156e
Diffstat (limited to 'svx/source/svdraw/svdotxdr.cxx')
-rw-r--r--svx/source/svdraw/svdotxdr.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/svx/source/svdraw/svdotxdr.cxx b/svx/source/svdraw/svdotxdr.cxx
index d7d563157c8d..334aaaef1568 100644
--- a/svx/source/svdraw/svdotxdr.cxx
+++ b/svx/source/svdraw/svdotxdr.cxx
@@ -53,11 +53,11 @@ SdrHdl* SdrTextObj::GetHdl(sal_uInt32 nHdlNum) const
case 7: aPnt=aRect.BottomRight(); eKind=HDL_LWRGT; break;
}
if (aGeo.nShearWink!=0) ShearPoint(aPnt,aRect.TopLeft(),aGeo.nTan);
- if (aGeo.nDrehWink!=0) RotatePoint(aPnt,aRect.TopLeft(),aGeo.nSin,aGeo.nCos);
+ if (aGeo.nRotationAngle!=0) RotatePoint(aPnt,aRect.TopLeft(),aGeo.nSin,aGeo.nCos);
if (eKind!=HDL_MOVE) {
pH=new SdrHdl(aPnt,eKind);
pH->SetObj((SdrObject*)this);
- pH->SetDrehWink(aGeo.nDrehWink);
+ pH->SetDrehWink(aGeo.nRotationAngle);
}
return pH;
}
@@ -79,7 +79,7 @@ Rectangle SdrTextObj::ImpDragCalcRect(const SdrDragStat& rDrag) const
bool bBigOrtho=bEcke && bOrtho && rDrag.GetView()->IsBigOrtho();
Point aPos(rDrag.GetNow());
// Unrotate:
- if (aGeo.nDrehWink!=0) RotatePoint(aPos,aTmpRect.TopLeft(),-aGeo.nSin,aGeo.nCos);
+ if (aGeo.nRotationAngle!=0) RotatePoint(aPos,aTmpRect.TopLeft(),-aGeo.nSin,aGeo.nCos);
// Unshear:
if (aGeo.nShearWink!=0) ShearPoint(aPos,aTmpRect.TopLeft(),-aGeo.nTan);
@@ -150,14 +150,14 @@ bool SdrTextObj::applySpecialDrag(SdrDragStat& rDrag)
{
Rectangle aNewRect(ImpDragCalcRect(rDrag));
- if(aNewRect.TopLeft() != aRect.TopLeft() && (aGeo.nDrehWink || aGeo.nShearWink))
+ if(aNewRect.TopLeft() != aRect.TopLeft() && (aGeo.nRotationAngle || aGeo.nShearWink))
{
Point aNewPos(aNewRect.TopLeft());
if(aGeo.nShearWink)
ShearPoint(aNewPos,aRect.TopLeft(),aGeo.nTan);
- if(aGeo.nDrehWink)
+ if(aGeo.nRotationAngle)
RotatePoint(aNewPos,aRect.TopLeft(),aGeo.nSin,aGeo.nCos);
aNewRect.SetPos(aNewPos);