diff options
author | Matúš Kukan <matus.kukan@collabora.com> | 2014-07-24 15:46:13 +0200 |
---|---|---|
committer | Matúš Kukan <matus.kukan@collabora.com> | 2014-07-24 19:37:18 +0200 |
commit | d60cec0e60c5c0880f8098d39443c391abed80b2 (patch) | |
tree | 4ee25fc14765b639791a64b75f12227a96c2dfbd | |
parent | 9a5e81fa80d1e90bd73ae4e19c89b28537aed334 (diff) |
bnc#862510: PPTX import: bullets have color as following text by default.
aTextCharacterStyle contains font theme color set in Shape::createAndInsert.
Change-Id: I55e66aeaa7176fbd3f64dcdf075d411f460947d4
-rw-r--r-- | oox/source/drawingml/textparagraph.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/oox/source/drawingml/textparagraph.cxx b/oox/source/drawingml/textparagraph.cxx index f76631c03fbf..098a9415222f 100644 --- a/oox/source/drawingml/textparagraph.cxx +++ b/oox/source/drawingml/textparagraph.cxx @@ -113,6 +113,8 @@ void TextParagraph::insertAt( if( !aioBulletList.hasProperty( PROP_BulletColor ) && maRuns.size() > 0 && (*maRuns.begin())->getTextCharacterProperties().maCharColor.isUsed() ) aioBulletList.setProperty( PROP_BulletColor, (*maRuns.begin())->getTextCharacterProperties().maCharColor.getColor( rFilterBase.getGraphicHelper() )); + if( !aioBulletList.hasProperty( PROP_BulletColor ) && aTextCharacterStyle.maCharColor.isUsed() ) + aioBulletList.setProperty( PROP_BulletColor, aTextCharacterStyle.maCharColor.getColor( rFilterBase.getGraphicHelper() )); float fCharacterSize = nCharHeight > 0 ? GetFontHeight ( nCharHeight ) : pTextParagraphStyle->getCharHeightPoints( 12 ); aParaProp.pushToPropSet( &rFilterBase, xProps, aioBulletList, &pTextParagraphStyle->getBulletList(), true, fCharacterSize, true ); |