From: Dominik Stadler Date: Thu, 28 Nov 2013 15:15:59 +0000 (+0000) Subject: Bug 55745: fix handling of tables in XSSF if there are comments as well, there is... X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6618473e64aa61345274f7ab5af570c02e4c4b3b;p=poi.git 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 --- diff --git a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSheet.java b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSheet.java index fe985ac71d..0ebe113a26 100644 --- a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSheet.java +++ b/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 ); diff --git a/test-data/spreadsheet/55745.xlsx b/test-data/spreadsheet/55745.xlsx new file mode 100644 index 0000000000..5726e741a2 Binary files /dev/null and b/test-data/spreadsheet/55745.xlsx differ