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

--- Comment #10 from Dominik Stadler <dominik.stad...@gmx.at> ---
initial attempt at a unit test for this:

    @Test
    public void testBug58838() throws IOException {
        Workbook wb = HSSFTestDataSamples.openSampleWorkbook("58838.xls");

        Sheet sheet = wb.getSheet("InitCharge");
        Row row = sheet.getRow(1);

        //int lastCol = CellReference.convertColStringToIndex("BC");
        for (int c=0; c <= row.getLastCellNum(); c++) {
            Cell cell = row.getCell(c);
            if (cell != null) {
                System.out.print(new CellReference(1, c).formatAsString() + ",
");
            } else {
                System.out.print("(" + new CellReference(1, c).formatAsString()
+ "), ");
            }
        }

        wb.close();
    }

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org

Reply via email to