summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Gelmini <andrea.gelmini@gelma.net>2022-10-13 12:13:45 +0200
committerJulien Nabet <serval2412@yahoo.fr>2022-10-14 07:53:09 +0200
commit833825eec54718ac99ab31877fb65a83864ba049 (patch)
tree46befd078960c7d4fade1fb8f9071fc019291750
parent9b227506a5fd3e84d4aa877fc6459996546348ba (diff)
Fix typo in code
Change-Id: If4cf1a77490650902d77705761b5168bdf5cece8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141306 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
-rw-r--r--oox/source/drawingml/shape.cxx6
1 files changed, 3 insertions, 3 deletions
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.