oox/source/export/drawingml.cxx | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-)
New commits: commit 20d2c2fe481eb66f518c554f8588ec87e0ee125a Author: Szabolcs Toth <[email protected]> AuthorDate: Mon Jun 14 10:32:56 2021 +0200 Commit: László Németh <[email protected]> CommitDate: Mon Jun 21 13:17:55 2021 +0200 tdf#137000: clean-up "XML shape export: fix upright" See commit ff5ca4e5fc6a9fb24b0eb6eb629210b024473f67 "tdf#137000 XLSX shape export: fix upright". Change-Id: Ie050da66f1eef4fc325b2acfd0a97d299c268153 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117135 Tested-by: László Németh <[email protected]> Reviewed-by: László Németh <[email protected]> diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx index 76874c5b1493..de8c2928ccba 100644 --- a/oox/source/export/drawingml.cxx +++ b/oox/source/export/drawingml.cxx @@ -3220,13 +3220,7 @@ void DrawingML::WriteText(const Reference<XInterface>& rXIface, bool bBodyPr, bo std::optional<OUString> sHorzOverflow; std::optional<OUString> sVertOverflow; - sal_Int32 nShapeRotateAngle = 0; - if (GetProperty(rXPropSet, "RotateAngle")) - nShapeRotateAngle = rXPropSet->getPropertyValue("RotateAngle").get<sal_Int32>() / 300; - Reference< XPropertySet > xTextSet(xXText, UNO_QUERY); - sal_Int32 nShapeTextRotateAngle = 0; - if (GetProperty(xTextSet, "RotateAngle")) - nShapeTextRotateAngle = rXPropSet->getPropertyValue("RotateAngle").get<sal_Int32>() / 300; + sal_Int32 nShapeRotateAngle = rXPropSet->getPropertyValue("RotateAngle").get<sal_Int32>() / 300; sal_Int16 nCols = 0; sal_Int32 nColSpacing = -1; if (GetProperty(rXPropSet, "TextColumns")) @@ -3286,7 +3280,7 @@ void DrawingML::WriteText(const Reference<XInterface>& rXIface, bool bBodyPr, bo // Keep upright and make the preRotateAngle 0, it is an attribute // of textBodyPr and must be 0 when upright is true, otherwise // bad rotation happens in MSO. - if (nShapeRotateAngle == nOldShapeRotation && nShapeTextRotateAngle == nOldTextRotation) + if (nShapeRotateAngle == nOldShapeRotation && nShapeRotateAngle == nOldTextRotation) nTextPreRotateAngle = 0; // So we rotated the shape, in this case lose upright and do // as LO normally does. _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
