提交 6351fe2c 编写于 作者: 庄家钜's avatar 庄家钜

修复不自动行高的问题 [Issue #1869]

上级 56ab48e3
...@@ -28,7 +28,7 @@ import com.alibaba.excel.write.metadata.fill.FillWrapper; ...@@ -28,7 +28,7 @@ import com.alibaba.excel.write.metadata.fill.FillWrapper;
import com.alibaba.excel.write.metadata.holder.WriteSheetHolder; import com.alibaba.excel.write.metadata.holder.WriteSheetHolder;
import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.collections4.CollectionUtils;
import org.apache.poi.hssf.usermodel.PoiHssfUtils; import org.apache.poi.hssf.usermodel.PoiUtils;
import org.apache.poi.ss.usermodel.Cell; import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.CellStyle; import org.apache.poi.ss.usermodel.CellStyle;
import org.apache.poi.ss.usermodel.CellType; import org.apache.poi.ss.usermodel.CellType;
...@@ -354,7 +354,7 @@ public class ExcelWriteFillExecutor extends AbstractExcelWriteExecutor { ...@@ -354,7 +354,7 @@ public class ExcelWriteFillExecutor extends AbstractExcelWriteExecutor {
return; return;
} }
// fix https://github.com/alibaba/easyexcel/issues/1869 // fix https://github.com/alibaba/easyexcel/issues/1869
if (isOriginalCell && PoiHssfUtils.customHeight(row)) { if (isOriginalCell && PoiUtils.customHeight(row)) {
collectionRowHeightCache.put(currentUniqueDataFlag, row.getHeight()); collectionRowHeightCache.put(currentUniqueDataFlag, row.getHeight());
return; return;
} }
......
...@@ -10,7 +10,7 @@ import org.apache.poi.xssf.usermodel.XSSFRow; ...@@ -10,7 +10,7 @@ import org.apache.poi.xssf.usermodel.XSSFRow;
* *
* @author Jiaju Zhuang * @author Jiaju Zhuang
*/ */
public class PoiHssfUtils { public class PoiUtils {
/** /**
* Whether to customize the height * Whether to customize the height
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册