ooxml10: apply oox-pptx-import-fix-placeholder-text-style-1.diff from ooo-build

This commit is contained in:
Radek Doulik 2010-05-03 11:39:40 +02:00
parent 9ca20d4fcf
commit 9957ebbc6f

View file

@ -173,9 +173,12 @@ void PPTShape::addShape(
if( mnSubType && getIndex() && rSlidePersist.getMasterPersist().get() ) {
oox::drawingml::ShapePtr pPlaceholder = PPTShape::findPlaceholderByIndex( getIndex(), rSlidePersist.getMasterPersist()->getShapes()->getChildren() );
if( pPlaceholder.get() && pPlaceholder->getTextBody() ) {
TextListStylePtr pNewTextListStyle (new TextListStyle());
TextListStylePtr pNewTextListStyle ( new TextListStyle() );
pNewTextListStyle->apply( pPlaceholder->getTextBody()->getTextListStyle() );
if( pPlaceholder->getMasterTextListStyle().get() )
pNewTextListStyle->apply( *pPlaceholder->getMasterTextListStyle() );
aMasterTextListStyle = pNewTextListStyle;
}
}