OdfTable.getCellRangeByName throws exception when the name points to a single 
cell
----------------------------------------------------------------------------------

                 Key: ODFTOOLKIT-303
                 URL: https://issues.apache.org/jira/browse/ODFTOOLKIT-303
             Project: ODF Toolkit
          Issue Type: Bug
          Components: odfdom
    Affects Versions: 0.8.7
         Environment: Ubuntu
            Reporter: Johnny Haugen Sørgård
            Assignee: Devin Han


The original code has the return statement like this:

return getCellRangeByPosition(addresses[0], addresses[1]);

This code will return a cellrange consisting of one cell when applicable:

if (addresses.length == 1) {
    return getCellRangeByPosition(addresses[0], addresses[0]);
} else {
    return getCellRangeByPosition(addresses[0], addresses[1]);
}

Cell naming in e.g. LibreOffice usually points to a single cell.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to