#62108 - ArrayIndexOfBounds exception when getColumnWidth()

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1839710 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andreas Beeker 2018-08-31 00:28:17 +00:00
parent 2044779351
commit 14335fd152

View File

@ -543,9 +543,8 @@ public class XSSFFont implements Font {
*/ */
public long registerTo(StylesTable styles) { public long registerTo(StylesTable styles) {
this._themes = styles.getTheme(); this._themes = styles.getTheme();
short idx = (short)styles.putFont(this, true); this._index = styles.putFont(this, true);
this._index = idx; return this._index;
return idx;
} }
/** /**
* Records the Themes Table that is associated with * Records the Themes Table that is associated with