diff --git a/drawinglayer/source/processor2d/vclprocessor2d.cxx b/drawinglayer/source/processor2d/vclprocessor2d.cxx index 54aef7426101..9b904718d9d2 100644 --- a/drawinglayer/source/processor2d/vclprocessor2d.cxx +++ b/drawinglayer/source/processor2d/vclprocessor2d.cxx @@ -146,6 +146,14 @@ namespace drawinglayer fRotate, rTextCandidate.getLocale())); + // set FillColor Attribute + const Color aFillColor( rTextCandidate.getTextFillColor() ); + if( aFillColor != COL_TRANSPARENT ) + { + aFont.SetFillColor(aFillColor); + aFont.SetTransparent(false); + } + // Don't draw fonts without height if( aFont.GetHeight() <= 0 ) return; @@ -187,17 +195,6 @@ namespace drawinglayer if( eFontStrikeout != STRIKEOUT_NONE ) aFont.SetStrikeout( eFontStrikeout ); - // set FillColor Attribute - // FIXME(matteocam) - - // XXX: is "Color" the right type? i.e. can we use class Color in TextSimplePortionPrimitive2D - const Color aFillColor(pTCPP->getTextFillColor() ); - if( aFillColor != COL_TRANSPARENT ) - { - aFont.SetFillColor(aFillColor); - aFont.SetTransparent(false); - } - // set EmphasisMark attribute FontEmphasisMark eFontEmphasisMark = EMPHASISMARK_NONE;