fdo#55800: fix hex color conversion

Change-Id: I705ff4c83f635fcfea383a00eec724110d2e4b45
This commit is contained in:
Ivan Timofeev
2012-10-22 20:23:18 +04:00
parent a40f08c1ac
commit 8545bf9afc

View File

@@ -1383,8 +1383,8 @@ IMPL_LINK( ColorPickerDialog, ColorModifyHdl, void *, p )
if( aColor != GetColor() )
{
mdRed = ((double)aColor.GetRed()) / 255.0;
mdGreen = ((double)aColor.GetRed()) / 255.0;
mdBlue = ((double)aColor.GetRed()) / 255.0;
mdGreen = ((double)aColor.GetGreen()) / 255.0;
mdBlue = ((double)aColor.GetBlue()) / 255.0;
RGBtoHSV( mdRed, mdGreen, mdBlue, mdHue, mdSat, mdBri );
RGBtoCMYK( mdRed, mdGreen, mdBlue, mdCyan, mdMagenta, mdYellow, mdKey );