[Libreoffice-commits] .: Branch 'libreoffice-3-6' - cui/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Mon Oct 22 12:39:35 PDT 2012


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

New commits:
commit 66446668dad9dfb8394fe3e6afcff78662efc63a
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
    Reviewed-on: https://gerrit.libreoffice.org/895
    Reviewed-by: Eike Rathke <erack at redhat.com>
    Tested-by: Eike Rathke <erack at redhat.com>

diff --git a/cui/source/dialogs/colorpicker.cxx b/cui/source/dialogs/colorpicker.cxx
index 40f7302..9753a2c 100644
--- a/cui/source/dialogs/colorpicker.cxx
+++ b/cui/source/dialogs/colorpicker.cxx
@@ -1407,8 +1407,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