From 1c4a476a725ca57a5da1dc3cdd0390263e748083 Mon Sep 17 00:00:00 2001 From: Avik Sengupta Date: Sun, 27 Jul 2003 18:53:53 +0000 Subject: [PATCH] MERGE from REL_2_BRANCH: Bug id 21086 incorrect comparison of RGB values in HSSFPalette submitted by Tobias Haubner git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353260 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/poi/hssf/usermodel/HSSFPalette.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.39.5