You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ki...@apache.org on 2018/08/31 00:28:17 UTC
svn commit: r1839710 -
/poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFFont.java
Author: kiwiwings
Date: Fri Aug 31 00:28:17 2018
New Revision: 1839710
URL: http://svn.apache.org/viewvc?rev=1839710&view=rev
Log:
#62108 - ArrayIndexOfBounds exception when getColumnWidth()
Modified:
poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFFont.java
Modified: poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFFont.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFFont.java?rev=1839710&r1=1839709&r2=1839710&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFFont.java (original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFFont.java Fri Aug 31 00:28:17 2018
@@ -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
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org