svx/source/svdraw/svdotxtr.cxx |    9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

New commits:
commit d2e757b9c6fbf7c205a7229f06e559e85bd8ead9
Author:     Tomaž Vajngerl <tomaz.vajng...@collabora.co.uk>
AuthorDate: Sun Mar 5 00:31:14 2023 +0900
Commit:     Tomaž Vajngerl <qui...@gmail.com>
CommitDate: Sun Mar 5 01:39:56 2023 +0000

    svx: remove unneeded rectangle inits
    
    Change-Id: If430eace7e82ff52bb10c83b5f66148e2d9ade13
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148248
    Tested-by: Tomaž Vajngerl <qui...@gmail.com>
    Reviewed-by: Tomaž Vajngerl <qui...@gmail.com>

diff --git a/svx/source/svdraw/svdotxtr.cxx b/svx/source/svdraw/svdotxtr.cxx
index 0834e6f3040d..1454bc52f946 100644
--- a/svx/source/svdraw/svdotxtr.cxx
+++ b/svx/source/svdraw/svdotxtr.cxx
@@ -152,8 +152,7 @@ void SdrTextObj::NbcResize(const Point& rRef, const 
Fraction& xFact, const Fract
             aPol[3] = aPol0[2];
             aPol[4] = aPol0[1];
         }
-        tools::Rectangle aRectangle(getRectangle());
-        aRectangle = svx::polygonToRectangle(aPol, maGeo);
+        tools::Rectangle aRectangle = svx::polygonToRectangle(aPol, maGeo);
         setRectangle(aRectangle);
     }
 
@@ -223,8 +222,7 @@ void SdrTextObj::NbcShear(const Point& rRef, Degree100 
/*nAngle*/, double tn, bo
     for (sal_uInt16 i=0; i<nPointCount; i++) {
          ShearPoint(aPol[i],rRef,tn,bVShear);
     }
-    auto aRectangle = getRectangle();
-    aRectangle = svx::polygonToRectangle(aPol, maGeo);
+    tools::Rectangle aRectangle = svx::polygonToRectangle(aPol, maGeo);
     setRectangle(aRectangle);
     ImpJustifyRect(maRectangle);
 
@@ -260,8 +258,7 @@ void SdrTextObj::NbcMirror(const Point& rRef1, const Point& 
rRef2)
     aPol[2]=aPol0[3];
     aPol[3]=aPol0[2];
     aPol[4]=aPol0[1];
-    tools::Rectangle aRectangle = getRectangle();
-    aRectangle = svx::polygonToRectangle(aPol, maGeo);
+    tools::Rectangle aRectangle = svx::polygonToRectangle(aPol, maGeo);
     setRectangle(aRectangle);
 
     if (bRotate90) {

Reply via email to