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 Tue, 01 Jul 2003 15:08:00 GMT
avik        2003/07/01 08:07:59

  Modified:    src/java/org/apache/poi/hssf/usermodel Tag: REL_2_BRANCH
                        HSSFPalette.java
  Log:
  Bug id 21086
  incorrect comparison of RGB values in HSSFPalette
  submitted by Tobias Haubner .. thanks!
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.2.2.1   +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.2.2.1
  diff -u -r1.2 -r1.2.2.1
  --- HSSFPalette.java	30 Apr 2003 04:39:00 -0000	1.2
  +++ HSSFPalette.java	1 Jul 2003 15:07:59 -0000	1.2.2.1
  @@ -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