diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-12-12 16:57:30 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-12-13 08:12:45 +0100 |
commit | d59987b164bc32efe8f99ad49c139b4fc7ca3c2f (patch) | |
tree | 765652d6e940a5bdf43322ed54aa2f4c14116418 /cui/source/tabpages/backgrnd.cxx | |
parent | b4641df5de7842d6a8fc2c4f839214bf01160c8c (diff) |
loplugin:expandablemethods
Change-Id: I333d91ea5ce78c82e9bb107f934614efc7bfb8f7
Reviewed-on: https://gerrit.libreoffice.org/85078
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui/source/tabpages/backgrnd.cxx')
-rw-r--r-- | cui/source/tabpages/backgrnd.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cui/source/tabpages/backgrnd.cxx b/cui/source/tabpages/backgrnd.cxx index 18bcfc734689..811fc0cfacb7 100644 --- a/cui/source/tabpages/backgrnd.cxx +++ b/cui/source/tabpages/backgrnd.cxx @@ -119,7 +119,6 @@ public: void NotifyChange(const Color& rColor); void NotifyChange(const BitmapEx* pBitmap); - void SetFillColor(const Color& rColor) { aColor = rColor; } protected: virtual void Paint( vcl::RenderContext& /*rRenderContext*/, const ::tools::Rectangle& rRect ) override; @@ -164,7 +163,7 @@ void BackgroundPreviewImpl::NotifyChange( const Color& rColor ) if ( !bIsBmp ) { const static Color aTranspCol(COL_TRANSPARENT); - SetFillColor(rColor == aTranspCol ? Application::GetSettings().GetStyleSettings().GetFieldColor() : rColor.GetRGBColor()); + aColor = rColor == aTranspCol ? Application::GetSettings().GetStyleSettings().GetFieldColor() : rColor.GetRGBColor(); Invalidate(aDrawRect); } } |