mirror of
https://gitee.com/dromara/hutool.git
synced 2025-05-04 12:47:59 +08:00
fix #I38857
This commit is contained in:
parent
3bc5054a9a
commit
1f8bac4afa
@ -16,6 +16,7 @@
|
|||||||
* 【json 】 修复SQLEXception导致的栈溢出(issue#1399@Github)
|
* 【json 】 修复SQLEXception导致的栈溢出(issue#1399@Github)
|
||||||
* 【extra 】 修复Ftp中异常参数没有传入问题(issue#1397@Github)
|
* 【extra 】 修复Ftp中异常参数没有传入问题(issue#1397@Github)
|
||||||
* 【crypto 】 修复Sm2使用D构造空指针问题(issue#I37Z4C@Gitee)
|
* 【crypto 】 修复Sm2使用D构造空指针问题(issue#I37Z4C@Gitee)
|
||||||
|
* 【poi 】 修复ExcelPicUtil中图表报错问题(issue#I38857@Gitee)
|
||||||
|
|
||||||
-------------------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -96,9 +96,12 @@ public class ExcelPicUtil {
|
|||||||
XSSFPicture pic;
|
XSSFPicture pic;
|
||||||
CTMarker ctMarker;
|
CTMarker ctMarker;
|
||||||
for (XSSFShape shape : shapes) {
|
for (XSSFShape shape : shapes) {
|
||||||
pic = (XSSFPicture) shape;
|
if(shape instanceof XSSFPicture){
|
||||||
ctMarker = pic.getPreferredSize().getFrom();
|
pic = (XSSFPicture) shape;
|
||||||
sheetIndexPicMap.put(StrUtil.format("{}_{}", ctMarker.getRow(), ctMarker.getCol()), pic.getPictureData());
|
ctMarker = pic.getPreferredSize().getFrom();
|
||||||
|
sheetIndexPicMap.put(StrUtil.format("{}_{}", ctMarker.getRow(), ctMarker.getCol()), pic.getPictureData());
|
||||||
|
}
|
||||||
|
// 其他类似于图表等忽略,see: https://gitee.com/loolly/hutool/issues/I38857
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user