]> source.dussan.org Git - poi.git/commitdiff
Bug 55745: fix handling of tables in XSSF if there are comments as well, there is...
authorDominik Stadler <centic@apache.org>
Thu, 28 Nov 2013 15:15:59 +0000 (15:15 +0000)
committerDominik Stadler <centic@apache.org>
Thu, 28 Nov 2013 15:15:59 +0000 (15:15 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1546385 13f79535-47bb-0310-9956-ffa450edef68

src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSheet.java
test-data/spreadsheet/55745.xlsx [new file with mode: 0644]

index fe985ac71d20c2bf2a25ffa435cbe2d04a3e575f..0ebe113a261b4c639997b92d076ff770d4964244 100644 (file)
@@ -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 );
diff --git a/test-data/spreadsheet/55745.xlsx b/test-data/spreadsheet/55745.xlsx
new file mode 100644 (file)
index 0000000..5726e74
Binary files /dev/null and b/test-data/spreadsheet/55745.xlsx differ