]> source.dussan.org Git - poi.git/commitdiff
#62108 - ArrayIndexOfBounds exception when getColumnWidth()
authorAndreas Beeker <kiwiwings@apache.org>
Fri, 31 Aug 2018 00:28:17 +0000 (00:28 +0000)
committerAndreas Beeker <kiwiwings@apache.org>
Fri, 31 Aug 2018 00:28:17 +0000 (00:28 +0000)
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

index 55cec36d3ec0eeecc6b71c94534bd4bca34077cc..123200c2bae015cdf04fdd7da47b6ef170abe168 100644 (file)
@@ -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