]> source.dussan.org Git - poi.git/commitdiff
Fix regression introduced by r1516969
authorDominik Stadler <centic@apache.org>
Sat, 24 Aug 2013 18:33:00 +0000 (18:33 +0000)
committerDominik Stadler <centic@apache.org>
Sat, 24 Aug 2013 18:33:00 +0000 (18:33 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1517180 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/ss/util/CellReference.java

index 3bd7ba908875e2ca881761607708614bb5f23321..b43eb1bfc663ed1c25f804a363b8f5f641511d3e 100644 (file)
@@ -20,8 +20,8 @@ package org.apache.poi.ss.util;
 import java.util.regex.Matcher;
 import java.util.regex.Pattern;
 
-import org.apache.poi.ss.formula.SheetNameFormatter;
 import org.apache.poi.ss.SpreadsheetVersion;
+import org.apache.poi.ss.formula.SheetNameFormatter;
 import org.apache.poi.ss.usermodel.Cell;
 
 /**
@@ -427,7 +427,7 @@ public class CellReference {
 
                        // The letter A is at 65
                        char colChar = (char)(thisPart+64);
-                       colRef.append(colChar);
+                       colRef.insert(0, colChar);
                }
 
                return colRef.toString();
@@ -455,6 +455,7 @@ public class CellReference {
                return sb.toString();
        }
 
+       @Override
        public String toString() {
                StringBuffer sb = new StringBuffer(64);
                sb.append(getClass().getName()).append(" [");