diff options
Diffstat (limited to 'src/java')
-rw-r--r-- | src/java/org/apache/poi/hssf/usermodel/HSSFCellStyle.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/org/apache/poi/hssf/usermodel/HSSFCellStyle.java b/src/java/org/apache/poi/hssf/usermodel/HSSFCellStyle.java index db18e0fc9b..3f78756a7d 100644 --- a/src/java/org/apache/poi/hssf/usermodel/HSSFCellStyle.java +++ b/src/java/org/apache/poi/hssf/usermodel/HSSFCellStyle.java @@ -182,7 +182,7 @@ public final class HSSFCellStyle implements CellStyle, Duplicatable { } public void setFont(HSSFFont font) { _format.setIndentNotParentFont(true); - short fontindex = font.getIndex(); + short fontindex = (short) font.getIndex(); _format.setFontIndex(fontindex); } |