From 07705635a132a82a5866bdfa3aaa14279406e593 Mon Sep 17 00:00:00 2001 From: Andreas Beeker Date: Fri, 31 Aug 2018 00:28:17 +0000 Subject: [PATCH] #62108 - ArrayIndexOfBounds exception when getColumnWidth() git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1839710 13f79535-47bb-0310-9956-ffa450edef68 --- src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFFont.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFFont.java b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFFont.java index 55cec36d3e..123200c2ba 100644 --- a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFFont.java +++ b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFFont.java @@ -543,9 +543,8 @@ public class XSSFFont implements Font { */ public long registerTo(StylesTable styles) { this._themes = styles.getTheme(); - short idx = (short)styles.putFont(this, true); - this._index = idx; - return idx; + this._index = styles.putFont(this, true); + return this._index; } /** * Records the Themes Table that is associated with -- 2.39.5