oox/source/drawingml/transform2dcontext.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit b45d1f98f936c10c14bc537fd5eb811e350d7c3e Author: Julien Nabet <[email protected]> AuthorDate: Tue Dec 20 12:26:31 2022 +0100 Commit: Michael Stahl <[email protected]> CommitDate: Wed Dec 21 10:28:51 2022 +0000 tdf#152606: fix crash when opening specific pptx bt here: https://bugs.documentfoundation.org/attachment.cgi?id=184264 Related with 7e23cbdbb6ec0247a29ed8a8f744c01e10963ea0 tdf#149551 separate TextRotateAngle from TextPreRotateAngle Change-Id: Idab19bee37c7a6fe1dc3818b6ff111389d290e6e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144588 Tested-by: Jenkins Reviewed-by: Miklos Vajna <[email protected]> (cherry picked from commit 68a259f5af8757923be8a226631f38366fe8e37b) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144613 Reviewed-by: Xisco Fauli <[email protected]> Signed-off-by: Xisco Fauli <[email protected]> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144647 Reviewed-by: Michael Stahl <[email protected]> diff --git a/oox/source/drawingml/transform2dcontext.cxx b/oox/source/drawingml/transform2dcontext.cxx index 19945d23f7af..a16d55639f75 100644 --- a/oox/source/drawingml/transform2dcontext.cxx +++ b/oox/source/drawingml/transform2dcontext.cxx @@ -42,7 +42,7 @@ Transform2DContext::Transform2DContext( ContextHandler2Helper const & rParent, c } else { - if( rAttribs.hasAttribute( XML_rot ) ) + if (rAttribs.hasAttribute(XML_rot) && mrShape.getTextBody()) mrShape.getTextBody()->getTextProperties().moRotation = rAttribs.getInteger( XML_rot ).get(); } }
