diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-27 15:06:21 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-28 11:51:32 +0100 |
commit | 5564a31c3fe1098fd72635238d33a3dbafb8b62e (patch) | |
tree | 434a835c4cc04c671834f069b573c82ff414bbca /sc | |
parent | 9df0ce081eac287154ea496e9eb299b4bc4fa776 (diff) |
use less COLORDATA_RGB
part of removing ColorData
Change-Id: I5518cddeeefe66f70380367e1e3f78af0f3b5fbc
Reviewed-on: https://gerrit.libreoffice.org/50486
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/excel/xechart.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sc/source/filter/excel/xechart.cxx b/sc/source/filter/excel/xechart.cxx index b0d0837214f9..e864d192e617 100644 --- a/sc/source/filter/excel/xechart.cxx +++ b/sc/source/filter/excel/xechart.cxx @@ -706,10 +706,7 @@ sal_uInt32 XclExpChEscherFormat::RegisterColor( sal_uInt16 nPropId ) if( maData.mxEscherSet && maData.mxEscherSet->GetOpt( nPropId, nBGRValue ) ) { // swap red and blue - Color aColor( Color( - COLORDATA_BLUE( nBGRValue ), - COLORDATA_GREEN( nBGRValue ), - COLORDATA_RED( nBGRValue ) ) ); + Color aColor( nBGRValue & 0xff, (nBGRValue >> 8) & 0xff, (nBGRValue >> 16) & 0xff ); return GetPalette().InsertColor( aColor, EXC_COLOR_CHARTAREA ); } return XclExpPalette::GetColorIdFromIndex( EXC_COLOR_CHWINDOWBACK ); |