poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 53672] Cells without reference (R value) are not processed correctly
Date Tue, 07 Aug 2012 16:03:01 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=53672

--- Comment #1 from Triqui <pedro.t.garcia@gmail.com> ---
Well, in fact the second workaround has some mistakes. 
I copied the wrong lines. It should be like this (hope it's ok now I have
edited it here):
public class XSSFRow implements Row, Comparable<XSSFRow> {
    protected XSSFRow(CTRow row, XSSFSheet sheet) {
        _row = row;
        _sheet = sheet;
        _cells = new TreeMap<Integer, XSSFCell>();
        int columnIndex = -1;
        for (CTCell c : row.getCArray()) {
// Begin modification
            if (c.getR() == null) {
                columnIndex++;
               
c.setR(CellReference.convertNumToColString(columnIndex)+this.getRowNum());
            }
// End modification
            XSSFCell cell = new XSSFCell(this, c);
            columnIndex = cell.getColumnIndex();
            _cells.put(cell.getColumnIndex(), cell);
            sheet.onReadCell(cell);
        }
    }
}

-- 
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


Mime
View raw message