]> source.dussan.org Git - poi.git/commitdiff
off by 1
authorAndrew C. Oliver <acoliver@apache.org>
Sun, 28 Apr 2002 18:02:21 +0000 (18:02 +0000)
committerAndrew C. Oliver <acoliver@apache.org>
Sun, 28 Apr 2002 18:02:21 +0000 (18:02 +0000)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352533 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/hssf/util/ReferenceUtil.java

index d09ff76f0ca10c2e42f213912c2d8590528ab5c2..643d8ad2f043c6ac4860a657dbc1796ab53b6d6f 100644 (file)
@@ -27,7 +27,7 @@ public class ReferenceUtil {
            int[] retval = new int[2];
            String[] parts = seperateRowColumns(reference);           
            retval[1] = convertColStringToNum(parts[0]);
-           retval[0] = Integer.parseInt(parts[1]);
+           retval[0] = Integer.parseInt(parts[1])-1;
            return retval;
     }