From: Avik Sengupta Date: Tue, 1 Jul 2003 15:07:59 +0000 (+0000) Subject: Bug id 21086 X-Git-Tag: REL_2_5_1~114 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=26585a30720c5ae25b5fbed56fea2f02438ea1a8;p=poi.git Bug id 21086 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 --- diff --git a/src/java/org/apache/poi/hssf/usermodel/HSSFPalette.java b/src/java/org/apache/poi/hssf/usermodel/HSSFPalette.java index 6c5d0eed70..863533d455 100644 --- a/src/java/org/apache/poi/hssf/usermodel/HSSFPalette.java +++ b/src/java/org/apache/poi/hssf/usermodel/HSSFPalette.java @@ -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); }