Skip to content

Commit

Permalink
修订列名输出
Browse files Browse the repository at this point in the history
  • Loading branch information
owent committed Aug 8, 2023
1 parent 10f83b1 commit aa6c84c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

1. 修订数值类型数据错误导致的验证器Panic问题
2. 从Excel读取浮点数支持 `%` ,读取整数支持 `,` 分隔符。
3. 修订列名输出

## 2.14.0-rc4

Expand Down
4 changes: 2 additions & 2 deletions src/org/xresloader/core/engine/ExcelEngine.java
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,10 @@ static public String getColumnName(int column) {
}

--column;
String ret = String.valueOf((char) (column % 26) + 'A');
String ret = String.valueOf((char) ((column % 26) + 'A'));
while (column >= 26) {
column /= 26;
ret = String.valueOf((char) (column % 26) + 'A') + ret;
ret = String.valueOf((char) ((column % 26) + 'A')) + ret;
}

return ret;
Expand Down

0 comments on commit aa6c84c

Please sign in to comment.