From 19a906f09688f06ee90cac2a50126aeba749a331 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 19 Feb 2018 16:11:15 +0200 Subject: 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 Tested-by: Noel Grandin --- sd/source/ui/table/TableDesignPane.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sd/source/ui/table/TableDesignPane.cxx') 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() ); -- cgit