]> source.dussan.org Git - poi.git/commitdiff
Bug id 21086
authorAvik Sengupta <avik@apache.org>
Tue, 1 Jul 2003 15:07:59 +0000 (15:07 +0000)
committerAvik Sengupta <avik@apache.org>
Tue, 1 Jul 2003 15:07:59 +0000 (15:07 +0000)
incorrect comparison of RGB values in HSSFPalette
submitted by Tobias Haubner .. thanks!

git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353184 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/hssf/usermodel/HSSFPalette.java

index 6c5d0eed708f67a57ac3937c742b97585d540be3..863533d45588b5e8110c010ce895b74ddc78e968 100644 (file)
@@ -103,7 +103,7 @@ public class HSSFPalette
         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);
             }