diff --git a/src/java/org/apache/poi/hssf/usermodel/HSSFWorkbook.java b/src/java/org/apache/poi/hssf/usermodel/HSSFWorkbook.java index 1964417366..4294f6ecdf 100644 --- a/src/java/org/apache/poi/hssf/usermodel/HSSFWorkbook.java +++ b/src/java/org/apache/poi/hssf/usermodel/HSSFWorkbook.java @@ -1133,10 +1133,9 @@ public class HSSFWorkbook extends POIDocument implements org.apache.poi.ss.userm * @param idx index within the set of styles * @return HSSFCellStyle object at the index */ - public HSSFCellStyle getCellStyleAt(short idx) { - ExtendedFormatRecord xfr = workbook.getExFormatAt(idx); + ExtendedFormatRecord xfr = workbook.getExFormatAt((int)idx); HSSFCellStyle style = new HSSFCellStyle(idx, xfr, this); return style;