You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2016/11/23 11:31:49 UTC

[Bug 59733] shiftRows() causes org.apache.xmlbeans.impl.values.XmlValueDisconnectedException

https://bz.apache.org/bugzilla/show_bug.cgi?id=59733

--- Comment #8 from Sebastiaan Blommers <bl...@gmail.com> ---
By experiment I uncommented removeRow on the sheetData in XSSFSheets.shiftRows
function. Because this decouples the original row from the xml. I now try and
remove all cells instead when code decides to remove the row(s) to shift to.

//worksheet.getSheetData().removeRow(idx);
for(Iterator<Cell> cit = row.cellIterator(); cit.hasNext();) {
   row.removeCell(cit.next());
}

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org