poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kiwiwi...@apache.org
Subject svn commit: r1839710 - /poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFFont.java
Date Fri, 31 Aug 2018 00:28:17 GMT
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


Mime
View raw message