Bug 15643 - [PATCH] HSSFColor.getIndexHash() returns incorrect & incomplete mapping
Summary: [PATCH] HSSFColor.getIndexHash() returns incorrect & incomplete mapping
Status: RESOLVED FIXED
Alias: None
Product: POI
Classification: Unclassified
Component: HSSF (show other bugs)
Version: 2.0-dev
Hardware: All All
: P3 minor (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-23 22:44 UTC by Brian Sanders
Modified: 2004-11-16 19:05 UTC (History)
0 users



Attachments
Unified diff; patch for HSSFColor (14.45 KB, patch)
2002-12-23 22:45 UTC, Brian Sanders
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brian Sanders 2002-12-23 22:44:43 UTC
org.apache.poi.hssf.util.HSSFColor.getIndexHash() returns the incorrect mapping
for HSSFColor.TURQUOISE.  Additionally, not all colors in the standard palette
are represented.

Attached patch fixes mapping for HSSFColor.TURQUOISE, adds missing colors, and
adds repeated mappings (e.g., HSSFColor.BLUE is at index 0xc and 0x27).
Comment 1 Brian Sanders 2002-12-23 22:45:21 UTC
Created attachment 4262 [details]
Unified diff; patch for HSSFColor
Comment 2 Avik Sengupta 2002-12-25 17:19:44 UTC
applied. Please cross check. Thanks.