diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-06 11:09:21 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-07 07:09:12 +0100 |
commit | 9a97b9c051735afb3797888d111f1b6b2cab1a83 (patch) | |
tree | fb2118bdc43c4a9d83d25cadf452e020a8143b9b /sw/source/core/text/inftxt.cxx | |
parent | b3ee860e523dce3df16350a4053a67f39c2f92f8 (diff) |
use more Color in sw
Change-Id: I51d575c40228bbd2ff384f12da33c1cd8bda2dda
Reviewed-on: https://gerrit.libreoffice.org/50800
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/text/inftxt.cxx')
-rw-r--r-- | sw/source/core/text/inftxt.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/text/inftxt.cxx b/sw/source/core/text/inftxt.cxx index ee3cb8a82b0e..92f92f7ad872 100644 --- a/sw/source/core/text/inftxt.cxx +++ b/sw/source/core/text/inftxt.cxx @@ -525,7 +525,7 @@ SwTextPaintInfo::SwTextPaintInfo( SwTextFrame *pFrame, const SwRect &rPaint ) static bool lcl_IsDarkBackground( const SwTextPaintInfo& rInf ) { const Color* pCol = rInf.GetFont()->GetBackColor(); - if( ! pCol || COL_TRANSPARENT == pCol->GetColor() ) + if( ! pCol || COL_TRANSPARENT == *pCol ) { const SvxBrushItem* pItem; SwRect aOrigBackRect; @@ -1094,7 +1094,7 @@ void SwTextPaintInfo::DrawBackground( const SwLinePortion &rPor ) const // For dark background we do not want to have a filled rectangle if ( GetVsh() && GetVsh()->GetWin() && lcl_IsDarkBackground( *this ) ) { - pOut->SetLineColor( SwViewOption::GetFontColor().GetColor() ); + pOut->SetLineColor( SwViewOption::GetFontColor() ); } else { |