incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r1401221 - /incubator/ooo/trunk/main/cui/source/dialogs/colorpicker.cxx
Date Tue, 23 Oct 2012 09:43:40 GMT
Author: alg
Date: Tue Oct 23 09:43:40 2012
New Revision: 1401221

URL: http://svn.apache.org/viewvc?rev=1401221&view=rev
Log:
#121251# corrected processing on hex value change

Modified:
    incubator/ooo/trunk/main/cui/source/dialogs/colorpicker.cxx

Modified: incubator/ooo/trunk/main/cui/source/dialogs/colorpicker.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/cui/source/dialogs/colorpicker.cxx?rev=1401221&r1=1401220&r2=1401221&view=diff
==============================================================================
--- incubator/ooo/trunk/main/cui/source/dialogs/colorpicker.cxx (original)
+++ incubator/ooo/trunk/main/cui/source/dialogs/colorpicker.cxx Tue Oct 23 09:43:40 2012
@@ -1457,9 +1457,10 @@ IMPL_LINK( ColorPickerDialog, ColorModif
 
             if( aColor != GetColor() )
             {
+                // #121251# green and blue were wrongly taken
                 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 );



Mime
View raw message