diff options
Diffstat (limited to 'sw/source/core/text/inftxt.cxx')
-rw-r--r-- | sw/source/core/text/inftxt.cxx | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/sw/source/core/text/inftxt.cxx b/sw/source/core/text/inftxt.cxx index e6806721710a..2de233c2de11 100644 --- a/sw/source/core/text/inftxt.cxx +++ b/sw/source/core/text/inftxt.cxx @@ -1171,9 +1171,6 @@ void SwTxtPaintInfo::DrawBackBrush( const SwLinePortion &rPor ) const } } } - if( !m_pFnt->GetBackColor() ) return; - - OSL_ENSURE( m_pFnt->GetBackColor(), "DrawBackBrush: Lost Color" ); SwRect aIntersect; CalcRect( rPor, 0, &aIntersect, true ); @@ -1187,7 +1184,15 @@ void SwTxtPaintInfo::DrawBackBrush( const SwLinePortion &rPor ) const pTmpOut->Push( PUSH_LINECOLOR | PUSH_FILLCOLOR ); - pTmpOut->SetFillColor( *m_pFnt->GetBackColor() ); + if( m_pFnt->GetHighLightColor() != COL_TRANSPARENT ) + { + pTmpOut->SetFillColor( m_pFnt->GetHighLightColor() ); + } + else + { + if( !m_pFnt->GetBackColor() ) return; + pTmpOut->SetFillColor( *m_pFnt->GetBackColor() ); + } pTmpOut->SetLineColor(); DrawRect( aIntersect, sal_True, sal_False ); |