From 833825eec54718ac99ab31877fb65a83864ba049 Mon Sep 17 00:00:00 2001 From: Andrea Gelmini Date: Thu, 13 Oct 2022 12:13:45 +0200 Subject: Fix typo in code Change-Id: If4cf1a77490650902d77705761b5168bdf5cece8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141306 Tested-by: Jenkins Reviewed-by: Julien Nabet --- oox/source/drawingml/shape.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'oox') 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. -- cgit