[Libreoffice-commits] core.git: oox/source
Gülşah Köse (via logerrit)
logerrit at kemper.freedesktop.org
Fri Oct 18 06:54:32 UTC 2019
oox/source/drawingml/textbodypropertiescontext.cxx | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
New commits:
commit 49e0127419dbad8a75f1899db02115a2fe54aacd
Author: Gülşah Köse <gulsah.kose at collabora.com>
AuthorDate: Thu Oct 17 18:23:07 2019 +0300
Commit: Andras Timar <andras.timar at 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.timar at collabora.com>
Tested-by: Andras Timar <andras.timar at 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
More information about the Libreoffice-commits
mailing list