[
https://issues.apache.org/jira/browse/ODFTOOLKIT-363?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13633398#comment-13633398
]
Alexandr Klimov edited comment on ODFTOOLKIT-363 at 4/16/13 9:36 PM:
---------------------------------------------------------------------
In attach sample.zip is an archive with simple maven test project.
I think some trouble is in org.odftoolkit.simple.table.Table#createDefaultRow
method.
That method is called in following form, from the Table#appendRow method:
createDefaultRow(columnCount, true)
It's called so when table has not got child TableTableRowElement objects.
In this case the programm falls into following section of the
Table#createDefaultRow method:
*if (createRepeatedCell){...}*
In that section cells are created but not added as children to a new row.
May be I have got misunderstanding about true algorithm of row insertion?
was (Author: sasa-zmei):
In attach sample.zip is an archive with simple maven test project.
I think some trouble is in org.odftoolkit.simple.table.Table#createDefaultRow
method.
That method is called in following form, from the Table#appendRow method:
createDefaultRow(columnCount, true)
It's called so when table has not got child TableTableRowElement objects.
In this case the programm falls into following section of the
Table#createDefaultRow method:
if (createRepeatedCell){...}
In that section cells are created but not added as children to a new row.
May be I have got misunderstanding about true algorithm of row insertion?
> Table#appendRow() method creates a row without any cell
> -------------------------------------------------------
>
> Key: ODFTOOLKIT-363
> URL: https://issues.apache.org/jira/browse/ODFTOOLKIT-363
> Project: ODF Toolkit
> Issue Type: Bug
> Components: simple api
> Affects Versions: 0.7-incubating
> Reporter: Alexandr Klimov
> Labels: Table, appendRow
> Attachments: sample.zip
>
>
> When I create a table contains a header row only and call appendRow method on
> this table, then I obtain a row without any cell.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira