diff options
author | Andreas Beeker <kiwiwings@apache.org> | 2018-08-31 00:28:17 +0000 |
---|---|---|
committer | Andreas Beeker <kiwiwings@apache.org> | 2018-08-31 00:28:17 +0000 |
commit | 07705635a132a82a5866bdfa3aaa14279406e593 (patch) | |
tree | bcd4517dc3ac9ce4d0ccb31542c3c6730948ad55 /src/ooxml/java/org/apache/poi/xssf | |
parent | 8ebfec4808cce673b1911d15950200f2d1449b3c (diff) | |
download | poi-07705635a132a82a5866bdfa3aaa14279406e593.tar.gz poi-07705635a132a82a5866bdfa3aaa14279406e593.zip |
#62108 - ArrayIndexOfBounds exception when getColumnWidth()
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1839710 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/ooxml/java/org/apache/poi/xssf')
-rw-r--r-- | src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFFont.java | 5 |
1 files 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 |