summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/svdtrans.cxx7
1 files changed, 1 insertions, 6 deletions
diff --git a/svx/source/svdraw/svdtrans.cxx b/svx/source/svdraw/svdtrans.cxx
index 6af3a49ea873..3908440126cf 100644
--- a/svx/source/svdraw/svdtrans.cxx
+++ b/svx/source/svdraw/svdtrans.cxx
@@ -475,12 +475,7 @@ void GeoStat::RecalcTan()
tools::Polygon Rect2Poly(const tools::Rectangle& rRect, const GeoStat& rGeo)
{
- tools::Polygon aPol(5);
- aPol[0]=rRect.TopLeft();
- aPol[1]=rRect.TopRight();
- aPol[2]=rRect.BottomRight();
- aPol[3]=rRect.BottomLeft();
- aPol[4]=rRect.TopLeft();
+ tools::Polygon aPol(rRect);
if (rGeo.nShearAngle) ShearPoly(aPol,rRect.TopLeft(),rGeo.mfTanShearAngle);
if (rGeo.nRotationAngle) RotatePoly(aPol,rRect.TopLeft(),rGeo.mfSinRotationAngle,rGeo.mfCosRotationAngle);
return aPol;