diff options
author | Zolnai Tamás <zolnaitamas2000@gmail.com> | 2015-12-20 14:21:43 +0100 |
---|---|---|
committer | Zolnai Tamás <zolnaitamas2000@gmail.com> | 2015-12-22 10:42:44 +0100 |
commit | a9db17aabc3ac970e6e4754e28310d20138144d9 (patch) | |
tree | 09fe31daa3ae5f4e31cb712e546ac0b9443f2183 /oox | |
parent | loplugin:unusedfields in include/vcl (diff) | |
download | core-a9db17aabc3ac970e6e4754e28310d20138144d9.tar.gz core-a9db17aabc3ac970e6e4754e28310d20138144d9.zip |
tdf#96051: FILESAVE: Roundtrip any PPTX file with Shapes creates invalid OOXML
Revert "bnc#584721: Import subtitle block to master slides"
This reverts commit b3d50feaa87b670baf68288974005ac26ad31736.
It seems the imported subtitle block makes export corrupt the
output. Better to have a valid output.
Change-Id: I1a3d4f03e4fa0c4431a5394495682a1b9d7677bc
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/ppt/pptshape.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/oox/source/ppt/pptshape.cxx b/oox/source/ppt/pptshape.cxx index 869d0c41f59e..ce9b835c2b5f 100644 --- a/oox/source/ppt/pptshape.cxx +++ b/oox/source/ppt/pptshape.cxx @@ -144,9 +144,12 @@ void PPTShape::addShape( break; case XML_subTitle : { - sServiceName = "com.sun.star.presentation.SubtitleShape"; - aMasterTextListStyle = rSlidePersist.getMasterPersist().get() ? rSlidePersist.getMasterPersist()->getBodyTextStyle() : rSlidePersist.getBodyTextStyle(); - bClearText = true; + if ( ( meShapeLocation == Master ) || ( meShapeLocation == Layout ) ) + sServiceName = OUString(); + else { + sServiceName = "com.sun.star.presentation.SubtitleShape"; + aMasterTextListStyle = rSlidePersist.getMasterPersist().get() ? rSlidePersist.getMasterPersist()->getBodyTextStyle() : rSlidePersist.getBodyTextStyle(); + } } break; case XML_obj : |