diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-19 16:11:15 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-20 07:19:16 +0100 |
commit | 19a906f09688f06ee90cac2a50126aeba749a331 (patch) | |
tree | 66320878bd537b646f06afdbf2d2409e961f3024 /sd | |
parent | a7ee3cc31331353d307e4b7aaf7fe88721df6470 (diff) |
drop Color::SetColor(ColorData) in favour of operator=
first stage of getting rid of ColorData
Change-Id: I5e4e95eb958722814c43c8d1ebfef17ad18c29ec
Reviewed-on: https://gerrit.libreoffice.org/49997
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/table/TableDesignPane.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sd/source/ui/table/TableDesignPane.cxx b/sd/source/ui/table/TableDesignPane.cxx index 50421238b80f..0d54c61b3182 100644 --- a/sd/source/ui/table/TableDesignPane.cxx +++ b/sd/source/ui/table/TableDesignPane.cxx @@ -467,14 +467,14 @@ CellInfo::CellInfo( const Reference< XStyle >& xStyle ) // get style fill color if( !GetDraftFillColor(rSet, maCellColor) ) - maCellColor.SetColor( COL_TRANSPARENT ); + maCellColor = COL_TRANSPARENT; // get style text color const SvxColorItem* pTextColor = rSet.GetItem(EE_CHAR_COLOR); if( pTextColor ) maTextColor = pTextColor->GetValue(); else - maTextColor.SetColor( COL_TRANSPARENT ); + maTextColor = COL_TRANSPARENT; // get border const SvxBoxItem* pBoxItem = rSet.GetItem( SDRATTR_TABLE_BORDER ); @@ -649,7 +649,7 @@ const BitmapEx CreateDesignPreview( const Reference< XIndexAccess >& xTableStyle // draw text preview line if( aTextColor.GetColor() == COL_AUTO ) - aTextColor.SetColor( bIsPageDark ? COL_WHITE : COL_BLACK ); + aTextColor = bIsPageDark ? COL_WHITE : COL_BLACK; pVirDev->SetLineColor( aTextColor ); const Point aPnt1( nX + 2, nY + ((nCellHeight - 1 ) >> 1) ); const Point aPnt2( nX + nCellWidth - 3, aPnt1.Y() ); |