[Libreoffice-commits] .: cui/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Mon Oct 22 09:24:57 PDT 2012


 cui/source/dialogs/colorpicker.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 8545bf9afc3d4adfd3e7d33c5063a3ee259327a6
Author: Ivan Timofeev <timofeev.i.s at gmail.com>
Date:   Mon Oct 22 20:23:18 2012 +0400

    fdo#55800: fix hex color conversion
    
    Change-Id: I705ff4c83f635fcfea383a00eec724110d2e4b45

diff --git a/cui/source/dialogs/colorpicker.cxx b/cui/source/dialogs/colorpicker.cxx
index 5d19c61..e66403c 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 );


More information about the Libreoffice-commits mailing list