summaryrefslogtreecommitdiffstats
path: root/src/contrib
diff options
context:
space:
mode:
authorSean Sullivan <sullis@apache.org>2006-04-18 05:21:06 +0000
committerSean Sullivan <sullis@apache.org>2006-04-18 05:21:06 +0000
commit6e09c4be55f37637df780340f58da47689f7833a (patch)
treed1601321a920ca3be3d04f78d1b0c0385228cb88 /src/contrib
parent7b2729cc70863d23f8b2b5575e909f07fba51062 (diff)
downloadpoi-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.java2
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));