瀏覽代碼

Bug 55745: fix handling of tables in XSSF if there are comments as well, there is not much sense in leaving the loop on the first instance of comment table and skipping all the other tables.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1546385 13f79535-47bb-0310-9956-ffa450edef68
tags/REL_3_10_FINAL
Dominik Stadler 10 年之前
父節點
當前提交
59b0bd2ef0
共有 2 個文件被更改,包括 0 次插入1 次删除
  1. 0
    1
      src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSheet.java
  2. 二進制
      test-data/spreadsheet/55745.xlsx

+ 0
- 1
src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSheet.java 查看文件

@@ -147,7 +147,6 @@ public class XSSFSheet extends POIXMLDocumentPart implements Sheet {
for(POIXMLDocumentPart p : getRelations()){
if(p instanceof CommentsTable) {
sheetComments = (CommentsTable)p;
break;
}
if(p instanceof XSSFTable) {
tables.put( p.getPackageRelationship().getId(), (XSSFTable)p );

二進制
test-data/spreadsheet/55745.xlsx 查看文件


Loading…
取消
儲存