diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2022-12-20 12:26:31 +0100 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2022-12-21 10:28:51 +0000 |
commit | b45d1f98f936c10c14bc537fd5eb811e350d7c3e (patch) | |
tree | 0dfd316616c9fbc7a924ea36d48218bfc3e3b6de /oox | |
parent | 77e050e785cc7bdeff8c3b7746737499f0e0b381 (diff) |
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 <vmiklos@collabora.com>
(cherry picked from commit 68a259f5af8757923be8a226631f38366fe8e37b)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144613
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144647
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/drawingml/transform2dcontext.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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(); } } |