diff options
author | Radek Doulik <rodo@novell.com> | 2010-05-03 11:53:03 +0200 |
---|---|---|
committer | Radek Doulik <rodo@novell.com> | 2010-05-03 11:53:03 +0200 |
commit | db4dc717b175ce093b7e0379e1f64392d02a1b17 (patch) | |
tree | 0d8472c370832ce28138d71eeb9acb0550ef7546 /oox/source/ppt | |
parent | 8302f2c4b5d8f52524261c9f660cf8ecc66aa002 (diff) |
fix the build
Diffstat (limited to 'oox/source/ppt')
-rw-r--r-- | oox/source/ppt/pptshape.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/oox/source/ppt/pptshape.cxx b/oox/source/ppt/pptshape.cxx index 1e458385d7a2..d6a0cf5deabe 100644 --- a/oox/source/ppt/pptshape.cxx +++ b/oox/source/ppt/pptshape.cxx @@ -170,8 +170,8 @@ void PPTShape::addShape( } // use placeholder index if possible - if( mnSubType && getIndex() && rSlidePersist.getMasterPersist().get() ) { - oox::drawingml::ShapePtr pPlaceholder = PPTShape::findPlaceholderByIndex( getIndex(), rSlidePersist.getMasterPersist()->getShapes()->getChildren() ); + if( mnSubType && getSubTypeIndex() && rSlidePersist.getMasterPersist().get() ) { + oox::drawingml::ShapePtr pPlaceholder = PPTShape::findPlaceholderByIndex( getSubTypeIndex(), rSlidePersist.getMasterPersist()->getShapes()->getChildren() ); if( pPlaceholder.get() && pPlaceholder->getTextBody() ) { TextListStylePtr pNewTextListStyle ( new TextListStyle() ); @@ -257,7 +257,7 @@ oox::drawingml::ShapePtr PPTShape::findPlaceholderByIndex( const sal_Int32 nIdx, std::vector< oox::drawingml::ShapePtr >::reverse_iterator aRevIter( rShapes.rbegin() ); while( aRevIter != rShapes.rend() ) { - if ( (*aRevIter)->getIndex() == nIdx ) + if ( (*aRevIter)->getSubTypeIndex() == nIdx ) { aShapePtr = *aRevIter; break; |