summaryrefslogtreecommitdiff
path: root/sc/source/filter/excel/xechart.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-02-27 15:06:21 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-02-28 11:51:32 +0100
commit5564a31c3fe1098fd72635238d33a3dbafb8b62e (patch)
tree434a835c4cc04c671834f069b573c82ff414bbca /sc/source/filter/excel/xechart.cxx
parent9df0ce081eac287154ea496e9eb299b4bc4fa776 (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/source/filter/excel/xechart.cxx')
-rw-r--r--sc/source/filter/excel/xechart.cxx5
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 );