]> source.dussan.org Git - poi.git/commit
Bug 56170: Fix a problem with cells in workbooks becoming disconnected from XMLBeans...
authorDominik Stadler <centic@apache.org>
Sun, 18 May 2014 19:18:27 +0000 (19:18 +0000)
committerDominik Stadler <centic@apache.org>
Sun, 18 May 2014 19:18:27 +0000 (19:18 +0000)
commitecf9194b651813d995fa70dada3f223d0dc92735
treee159152d7647d4464978dccc53c2271ea3fa5dac
parent764ec1df173d6362676b2938f19949cc1b498094
Bug 56170: Fix a problem with cells in workbooks becoming disconnected from XMLBeans whenever columns need to be reordered during writing the file. This happens because setCArray() disconnects any previously stored array-item but we try to re-use them. So we need to recreate the CTCell and set it in the XSSFCell to make this work in all currently tested cases.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1595659 13f79535-47bb-0310-9956-ffa450edef68
src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFCell.java
src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFRow.java
src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFBugs.java
src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFCell.java
test-data/spreadsheet/56170.xlsx [new file with mode: 0644]