diff options
Diffstat (limited to 'src/ooxml')
-rw-r--r-- | src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFSheet.java | 11 | ||||
-rw-r--r-- | src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSheet.java | 1 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFSheet.java b/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFSheet.java index 7d0b6fc746..1ca6a5f147 100644 --- a/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFSheet.java +++ b/src/ooxml/java/org/apache/poi/xssf/streaming/SXSSFSheet.java @@ -463,6 +463,17 @@ public class SXSSFSheet implements Sheet, Cloneable { _sh.removeMergedRegion(index); } + + /** + * Removes a merged region of cells (hence letting them free) + * + * @param indices of the regions to unmerge + */ + @Override + public void removeMergedRegions(Collection<Integer> indices) + { + _sh.removeMergedRegions(indices); + } /** * Returns the number of merged regions 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 edc8000a4e..f8be5b0efb 100644 --- a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSheet.java +++ b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSheet.java @@ -1867,6 +1867,7 @@ public class XSSFSheet extends POIXMLDocumentPart implements Sheet { * * @param indices A set of the regions to unmerge */ + @Override public void removeMergedRegions(Collection<Integer> indices) { if (!worksheet.isSetMergeCells()) return; |