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
This commit is contained in:
Avik Sengupta 2003-07-01 15:07:59 +00:00
parent c472df8fd1
commit 181ff7fb54

View File

@ -103,7 +103,7 @@ public class HSSFPalette
for (short i = (short) PaletteRecord.FIRST_COLOR_INDEX; b != null; for (short i = (short) PaletteRecord.FIRST_COLOR_INDEX; b != null;
b = palette.getColor(++i)) 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); return new CustomColor(i, b);
} }