diff options
author | Felix Zhang <fezhang@suse.com> | 2013-06-21 09:55:07 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2013-06-21 10:06:54 +0200 |
commit | 9fac61d21c886c3793b14628eb1de59d88bf45f8 (patch) | |
tree | b150f081c6ef0cf871a9bbc16fa8ecc67507e941 | |
parent | 585410476faca215122c96fdd4196ebf77a8df7d (diff) |
bnc#593612: font size: override para prop with run prop
Change-Id: I4d0899c8f722150176cb3479bdb3b4a81c1b3eb8
-rw-r--r-- | oox/source/drawingml/textparagraph.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/oox/source/drawingml/textparagraph.cxx b/oox/source/drawingml/textparagraph.cxx index c4e82b31ff04..7bb719a1adf4 100644 --- a/oox/source/drawingml/textparagraph.cxx +++ b/oox/source/drawingml/textparagraph.cxx @@ -103,19 +103,18 @@ void TextParagraph::insertAt( PropertyMap aioBulletList; Reference< XPropertySet > xProps( xAt, UNO_QUERY); - float fCharacterSize = nCharHeight > 0 ? GetFontHeight( nCharHeight ) : 18; if ( pTextParagraphStyle.get() ) { TextParagraphProperties aParaProp; aParaProp.apply( *pTextParagraphStyle ); aParaProp.apply( maProperties ); - fCharacterSize = pTextParagraphStyle->getCharHeightPoints( fCharacterSize ); // bullets have same color as following texts by default if( !aioBulletList.hasProperty( PROP_BulletColor ) && maRuns.size() > 0 && (*maRuns.begin())->getTextCharacterProperties().maCharColor.isUsed() ) aioBulletList[ PROP_BulletColor ] <<= (*maRuns.begin())->getTextCharacterProperties().maCharColor.getColor( rFilterBase.getGraphicHelper() ); + float fCharacterSize = nCharHeight > 0 ? GetFontHeight ( nCharHeight ) : pTextParagraphStyle->getCharHeightPoints( 18 ); aParaProp.pushToPropSet( &rFilterBase, xProps, aioBulletList, &pTextParagraphStyle->getBulletList(), sal_True, fCharacterSize, true ); } |