poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject cvs commit: jakarta-poi/src/java/org/apache/poi/hssf/usermodel HSSFPalette.java
Date Sun, 27 Jul 2003 18:53:53 GMT
avik        2003/07/27 11:53:53

  Modified:    src/java/org/apache/poi/hssf/usermodel HSSFPalette.java
  Log:
  MERGE from REL_2_BRANCH:  Bug id 21086
    incorrect comparison of RGB values in HSSFPalette
    submitted by Tobias Haubner
  
  Revision  Changes    Path
  1.3       +1 -1      jakarta-poi/src/java/org/apache/poi/hssf/usermodel/HSSFPalette.java
  
  Index: HSSFPalette.java
  ===================================================================
  RCS file: /home/cvs/jakarta-poi/src/java/org/apache/poi/hssf/usermodel/HSSFPalette.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HSSFPalette.java	30 Apr 2003 04:39:00 -0000	1.2
  +++ HSSFPalette.java	27 Jul 2003 18:53:53 -0000	1.3
  @@ -103,7 +103,7 @@
           for (short i = (short) PaletteRecord.FIRST_COLOR_INDEX; b != null;
               b = palette.getColor(++i))
           {
  -            if (b[0] == red && b[1] == blue && b[2] == green)
  +            if (b[0] == red && b[1] == green && b[2] == blue)
               {
                   return new CustomColor(i, b);
               }
  
  
  

Mime
View raw message