diff options
author | Ivan Timofeev <timofeev.i.s@gmail.com> | 2012-10-22 20:23:18 +0400 |
---|---|---|
committer | Ivan Timofeev <timofeev.i.s@gmail.com> | 2012-10-22 20:24:21 +0400 |
commit | 8545bf9afc3d4adfd3e7d33c5063a3ee259327a6 (patch) | |
tree | e26fa621758172f0f7fc69af8f7c1a96a77c7ea5 /cui | |
parent | fdo#55034 Update default Hebrew font from Lucida Sans to Lucida Sans Unicode (diff) | |
download | core-8545bf9afc3d4adfd3e7d33c5063a3ee259327a6.tar.gz core-8545bf9afc3d4adfd3e7d33c5063a3ee259327a6.zip |
fdo#55800: fix hex color conversion
Change-Id: I705ff4c83f635fcfea383a00eec724110d2e4b45
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/dialogs/colorpicker.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cui/source/dialogs/colorpicker.cxx b/cui/source/dialogs/colorpicker.cxx index 5d19c61b83ea..e66403c664a5 100644 --- a/cui/source/dialogs/colorpicker.cxx +++ b/cui/source/dialogs/colorpicker.cxx @@ -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 ); |