oox/source/drawingml/textbodypropertiescontext.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
New commits: commit 49e0127419dbad8a75f1899db02115a2fe54aacd Author: Gülşah Köse <gulsah.k...@collabora.com> AuthorDate: Thu Oct 17 18:23:07 2019 +0300 Commit: Andras Timar <andras.ti...@collabora.com> CommitDate: Fri Oct 18 08:53:25 2019 +0200 tdf#128209 Add check for crash handling 3D rotation. Handling text 3D z rotation works only for custom shapes. Prevent to use it for other services. Change-Id: I99971bccc2f7a4b08e212e467343cb661869804a Reviewed-on: https://gerrit.libreoffice.org/80974 Reviewed-by: Andras Timar <andras.ti...@collabora.com> Tested-by: Andras Timar <andras.ti...@collabora.com> diff --git a/oox/source/drawingml/textbodypropertiescontext.cxx b/oox/source/drawingml/textbodypropertiescontext.cxx index cac8bc10f89e..d696b4c3ac70 100644 --- a/oox/source/drawingml/textbodypropertiescontext.cxx +++ b/oox/source/drawingml/textbodypropertiescontext.cxx @@ -172,9 +172,12 @@ ContextHandlerRef TextBodyPropertiesContext::onCreateContext( sal_Int32 aElement break; case A_TOKEN( scene3d ): // CT_Scene3D - return new Scene3DPropertiesContext( *this, mpShapePtr->get3DProperties() ); - break; + { + if(mpShapePtr && mpShapePtr->getServiceName() == "com.sun.star.drawing.CustomShape") + return new Scene3DPropertiesContext( *this, mpShapePtr->get3DProperties() ); + break; + } // EG_Text3D case A_TOKEN( sp3d ): // CT_Shape3D _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits