|Summary:||[PATCH] XSSFSheetXMLHandler should fallback to default style if cell style attribute not present|
|Product:||POI||Reporter:||Shaun Kalley <shaun.kalley>|
|Component:||XSSF||Assignee:||POI Developers List <dev>|
the diff for this patch
diff for test case
test file to go in test-data/spreadsheet
Description Shaun Kalley 2014-01-15 04:56:51 UTC
Created attachment 31207 [details] the diff for this patch Currently, a style is only applied to a cell if the cell style attribute ("s") is present. Following XSSFCell.getCellStyle(), if the attribute is not present, and there are are more than 0 styles in the styles table, we should use the default (0) style. This patch may also be the resolution for https://issues.apache.org/bugzilla/show_bug.cgi?id=55648.
Comment 1 Nick Burch 2014-01-15 10:54:26 UTC
Any chance you could work up a short unit test to go with the patch, which shows the problem + ensures it is solved?
Comment 2 Shaun Kalley 2014-01-15 19:24:53 UTC
Created attachment 31211 [details] diff for test case
Comment 3 Shaun Kalley 2014-01-15 19:25:59 UTC
Created attachment 31212 [details] test file to go in test-data/spreadsheet
Comment 4 Shaun Kalley 2014-01-15 19:26:57 UTC
Please find a diff for the requested test case and an XLSX file used by the test attached.