Skip to content

Commit

Permalink
修复RowUtil传入参数错误问题
Browse files Browse the repository at this point in the history
  • Loading branch information
looly committed Jun 16, 2023
1 parent 5637d37 commit 11655b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# 🚀Changelog

-------------------------------------------------------------------------------------------------------------
# 5.8.20(2023-06-14)
# 5.8.20(2023-06-16)

### 🐣新特性
* 【core 】 UrlQuery增加setStrict方法,区分是否严格模式(issue#I78PB1@Gitee)
Expand All @@ -18,6 +18,7 @@
* 【core 】 修复FileUtil.checkSlip方法缺陷(issue#3140@Github)
* 【extra 】 修复Sftp中exists方法父目录不存在时报错(issue#I7CSQ9@Gitee)
* 【extra 】 修复xml转json再转bean失败问题(issue#3139@Github)
* 【poi 】 修复RowUtil传入参数错误问题(issue#3139@Github)

-------------------------------------------------------------------------------------------------------------
# 5.8.19(2023-05-27)
Expand Down
2 changes: 1 addition & 1 deletion hutool-poi/src/main/java/cn/hutool/poi/excel/RowUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public static void insertRow(Sheet sheet, int startRow, int insertNumber) {
return;
}
// 插入位置的行,如果插入的行不存在则创建新行
Row sourceRow = Optional.ofNullable(sheet.getRow(startRow)).orElseGet(() -> sheet.createRow(insertNumber));
Row sourceRow = getOrCreateRow(sheet, startRow);
// 从插入行开始到最后一行向下移动
sheet.shiftRows(startRow, sheet.getLastRowNum(), insertNumber, true, false);

Expand Down

0 comments on commit 11655b0

Please sign in to comment.