aboutsummaryrefslogtreecommitdiffstats
path: root/src/ooxml/java/org/apache/poi/xssf
diff options
context:
space:
mode:
authorAndreas Beeker <kiwiwings@apache.org>2018-08-31 00:28:17 +0000
committerAndreas Beeker <kiwiwings@apache.org>2018-08-31 00:28:17 +0000
commit07705635a132a82a5866bdfa3aaa14279406e593 (patch)
treebcd4517dc3ac9ce4d0ccb31542c3c6730948ad55 /src/ooxml/java/org/apache/poi/xssf
parent8ebfec4808cce673b1911d15950200f2d1449b3c (diff)
downloadpoi-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.java5
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