/[Apache-SVN]
ViewVC logotype

Revision 1803317


Jump to revision: Previous Next
Author: gwoolsey
Date: Fri Jul 28 18:01:36 2017 UTC (6 years, 8 months ago)
Changed paths: 3
Log Message:
Deleting a sheet did not delete table parts and relations.  Deleting a table needs to also delete any queryTable relations and parts.

Previous behavior didn't result in documents Excel complained about, but left dead entries in the ZIP structure, which made it bigger and bugged me.

This change does not attempt to delete query connection definitions, as those aren't referenced as relations, and don't have a usage counter to ensure we only delete them if there are no other references.  In my samples I had query tables on multiple sheets using the same connection definition, and wanted to delete only one sheet/table but leave others.

Changed paths

Path Details
Directorypoi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSheet.java modified , text changed
Directorypoi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFTable.java modified , text changed
Directorypoi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFWorkbook.java modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26