diff options
author | Sean Sullivan <sullis@apache.org> | 2006-04-18 05:21:06 +0000 |
---|---|---|
committer | Sean Sullivan <sullis@apache.org> | 2006-04-18 05:21:06 +0000 |
commit | 6e09c4be55f37637df780340f58da47689f7833a (patch) | |
tree | d1601321a920ca3be3d04f78d1b0c0385228cb88 /src/contrib | |
parent | 7b2729cc70863d23f8b2b5575e909f07fba51062 (diff) | |
download | poi-6e09c4be55f37637df780340f58da47689f7833a.tar.gz poi-6e09c4be55f37637df780340f58da47689f7833a.zip |
fixed ArrayIndexOutOfBoundsException in the format(short, double) method
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@394843 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/contrib')
-rw-r--r-- | src/contrib/src/org/apache/poi/hssf/contrib/view/SVTableCellRenderer.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/contrib/src/org/apache/poi/hssf/contrib/view/SVTableCellRenderer.java b/src/contrib/src/org/apache/poi/hssf/contrib/view/SVTableCellRenderer.java index d3370aa56c..9b33f3c170 100644 --- a/src/contrib/src/org/apache/poi/hssf/contrib/view/SVTableCellRenderer.java +++ b/src/contrib/src/org/apache/poi/hssf/contrib/view/SVTableCellRenderer.java @@ -112,7 +112,7 @@ public class SVTableCellRenderer extends JLabel } public String format(short index, double value) { - if (index == 0) + if ( index <= 0 ) return generalNumberFormat.format(value); if (textFormatter[index] == null) throw new RuntimeException("Sorry. I cant handle the format code :"+Integer.toHexString(index)); |