oox/source/drawingml/shape.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 833825eec54718ac99ab31877fb65a83864ba049
Author:     Andrea Gelmini <andrea.gelm...@gelma.net>
AuthorDate: Thu Oct 13 12:13:45 2022 +0200
Commit:     Julien Nabet <serval2...@yahoo.fr>
CommitDate: Fri Oct 14 07:53:09 2022 +0200

    Fix typo in code
    
    Change-Id: If4cf1a77490650902d77705761b5168bdf5cece8
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141306
    Tested-by: Jenkins
    Reviewed-by: Julien Nabet <serval2...@yahoo.fr>

diff --git a/oox/source/drawingml/shape.cxx b/oox/source/drawingml/shape.cxx
index 0369f5ff732c..e1a81c99631c 100644
--- a/oox/source/drawingml/shape.cxx
+++ b/oox/source/drawingml/shape.cxx
@@ -971,14 +971,14 @@ Reference< XShape > const & Shape::createAndInsert(
             // It depends on the object rotation angle whether scaling is 
applied to switched
             // width and height. MSO acts strange in that case (as of May 
2021).
             const sal_Int32 nDeg(mnRotation / 60000);
-            const bool bNeedsMSOWidhtHeightToggle
+            const bool bNeedsMSOWidthHeightToggle
                 = (nDeg >= 45 && nDeg < 135) || (nDeg >= 225 && nDeg < 315);
-            if (bNeedsMSOWidhtHeightToggle)
+            if (bNeedsMSOWidthHeightToggle)
                 lcl_doSpecialMSOWidthHeightToggle(aTransformation);
 
             aTransformation.scale(fFactorX, fFactorY);
 
-            if (bNeedsMSOWidhtHeightToggle)
+            if (bNeedsMSOWidthHeightToggle)
             {
                 lcl_doSpecialMSOWidthHeightToggle(aTransformation);
                 // In case of flip the special case needs an additional 180deg 
rotation.

Reply via email to