This commit is contained in:
Looly 2022-10-09 19:12:02 +08:00
parent ee3022b4b3
commit 5fceca0bbc
2 changed files with 3 additions and 7 deletions

View File

@ -3,15 +3,14 @@
-------------------------------------------------------------------------------------------------------------
# 6.0.0.M1 (2022-08-27)
# 6.0.0.M1 (2022-10-09)
### 计划实现
* 【poi 】 PDF相关基于PdfBox
* 【poi 】 HTML、DOCX转换相关
* 【poi 】 Markdown相关如HTML转换等基于commonmark-java
* 【db 】 增加DDL封装
* 【json 】 实现自定义的类型转换,不影响全局的转换器
* 【core 】 Functional接口重新定义
* 【poi 】 CellUtil.getCellIfMergedRegion考虑添加缓存支持增加最大和最小范围判断减少遍历
### ❌不兼容特性

View File

@ -466,10 +466,7 @@ public class CellUtil {
* @since 5.4.5
*/
private static Cell getCellIfMergedRegion(final Sheet sheet, final int x, final int y) {
final int sheetMergeCount = sheet.getNumMergedRegions();
CellRangeAddress ca;
for (int i = 0; i < sheetMergeCount; i++) {
ca = sheet.getMergedRegion(i);
for (final CellRangeAddress ca : sheet.getMergedRegions()) {
if (ca.isInRange(y, x)) {
return SheetUtil.getCell(sheet, ca.getFirstRow(), ca.getFirstColumn());
}