summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorRadek Doulik <rodo@novell.com>2010-10-08 13:49:28 +0200
committerRadek Doulik <rodo@novell.com>2010-10-08 13:49:28 +0200
commitd04971ec9222823f889d996e9ae43bcdc82ef2f6 (patch)
tree53edff79d6d080555e4db0e1810490759e7af8fe /oox
parent30e56dcf86b34cf3942776364d9e4194bbdd49b0 (diff)
oox-fix-list-style-apply.diff: use slide's list style.
n#485417
Diffstat (limited to 'oox')
-rw-r--r--oox/source/ppt/pptshape.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/oox/source/ppt/pptshape.cxx b/oox/source/ppt/pptshape.cxx
index bfe3ead6ca04..44290e3eaf4f 100644
--- a/oox/source/ppt/pptshape.cxx
+++ b/oox/source/ppt/pptshape.cxx
@@ -186,8 +186,9 @@ void PPTShape::addShape(
*/
if ( sServiceName.getLength() )
{
+ // use style from master slide for placeholders only, otherwise use slide's style, which might be the default style from presentation
if ( !aMasterTextListStyle.get() )
- aMasterTextListStyle = rSlidePersist.getMasterPersist().get() ? rSlidePersist.getMasterPersist()->getOtherTextStyle() : rSlidePersist.getOtherTextStyle();
+ aMasterTextListStyle = ( mnSubType && rSlidePersist.getMasterPersist().get() ) ? rSlidePersist.getMasterPersist()->getOtherTextStyle() : rSlidePersist.getOtherTextStyle();
setMasterTextListStyle( aMasterTextListStyle );
Reference< XShape > xShape( createAndInsert( rFilterBase, sServiceName, pTheme, rxShapes, pShapeRect, bClearText ) );