summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/core/text/porrst.cxx13
1 files changed, 11 insertions, 2 deletions
diff --git a/sw/source/core/text/porrst.cxx b/sw/source/core/text/porrst.cxx
index 8aed6aacbf41..68af0743eb68 100644
--- a/sw/source/core/text/porrst.cxx
+++ b/sw/source/core/text/porrst.cxx
@@ -59,13 +59,22 @@ SwTmpEndPortion::SwTmpEndPortion( const SwLinePortion &rPortion )
void SwTmpEndPortion::Paint( const SwTxtPaintInfo &rInf ) const
{
- if( rInf.OnWin() && rInf.GetOpt().IsParagraph() )
+ if (rInf.OnWin() && rInf.GetOpt().IsParagraph())
{
#ifdef LEGACY_NON_PRINTING_CHARACTER_COLOR_FUNCTIONALITY
const OUString aTmp( CH_PAR );
rInf.DrawText( aTmp, *this );
#else
- rInf.DrawSpecial( *this, CH_PAR, Color(NON_PRINTING_CHARACTER_COLOR) );
+ const SwFont* pOldFnt = rInf.GetFont();
+
+ SwFont aFont(*pOldFnt);
+ aFont.SetColor(NON_PRINTING_CHARACTER_COLOR);
+ const_cast<SwTxtPaintInfo&>(rInf).SetFont(&aFont);
+
+ // draw the pilcrow
+ rInf.DrawText(OUString(CH_PAR), *this);
+
+ const_cast<SwTxtPaintInfo&>(rInf).SetFont(const_cast<SwFont*>(pOldFnt));
#endif
}
}