]> 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)
commit38b56217238816039b0fbd31b3a292d2d13e5a6a
treee159152d7647d4464978dccc53c2271ea3fa5dac
parent927e62f6626506e2436123db187353f57e16aa13
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]