diff options
author | Radek Doulik <rodo@novell.com> | 2010-10-08 13:54:35 +0200 |
---|---|---|
committer | Radek Doulik <rodo@novell.com> | 2010-10-08 13:54:35 +0200 |
commit | e4b13897f5bd03a1782654d32951b0fbd5ad216e (patch) | |
tree | 425b4c3b974928e546a12f2d853c2ef190c06b06 /oox/source/ppt/pptshape.cxx | |
parent | 69a1226fc68c3e837ad57500fcb629daaa9f6f2d (diff) |
oox-pptx-import-fix-layout.diff: fix list styles applying.
n#480223
Diffstat (limited to 'oox/source/ppt/pptshape.cxx')
-rw-r--r-- | oox/source/ppt/pptshape.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/oox/source/ppt/pptshape.cxx b/oox/source/ppt/pptshape.cxx index 44290e3eaf4f..c4e579e8c551 100644 --- a/oox/source/ppt/pptshape.cxx +++ b/oox/source/ppt/pptshape.cxx @@ -189,6 +189,18 @@ void PPTShape::addShape( // 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 = ( mnSubType && rSlidePersist.getMasterPersist().get() ) ? rSlidePersist.getMasterPersist()->getOtherTextStyle() : rSlidePersist.getOtherTextStyle(); + + if( aMasterTextListStyle.get() && getTextBody().get() ) { + TextListStylePtr aCombinedTextListStyle (new TextListStyle()); + + aCombinedTextListStyle->apply( *aMasterTextListStyle.get() ); + + if( mpPlaceholder.get() && mpPlaceholder->getTextBody().get() ) + aCombinedTextListStyle->apply( mpPlaceholder->getTextBody()->getTextListStyle() ); + aCombinedTextListStyle->apply( getTextBody()->getTextListStyle() ); + + setMasterTextListStyle( aCombinedTextListStyle ); + } else setMasterTextListStyle( aMasterTextListStyle ); Reference< XShape > xShape( createAndInsert( rFilterBase, sServiceName, pTheme, rxShapes, pShapeRect, bClearText ) ); |