Skip Menu |

This queue is for tickets about the ODF-lpOD CPAN distribution.

Report information
The Basics
Id: 64571
Status: resolved
Priority: 0/
Queue: ODF-lpOD

People
Owner: Nobody in particular
Requestors: jmgdoc [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: 1.105



The delete_column() and delete_row() table methods are missing, while they are part of the lpOD project functional specification. They will be provided with the next release. The workaround with 1.100 are the following: $table->delete_row($row_number) may be safely replaced by the following sequence: $row = $table->get_row($row_number); $row->delete if $row; On the other hand, delete_column is more complex because just deleting the column object doesn't automatically remove the corresponding cells, that must be individually deleted. So an appropriate workaround could be: $column = $table->get_column($column_number); $column->delete if $column; for $row ($table->get_rows) { $cell = $row->get_cell($column_number) or next; $cell->delete; } Be careful: just removing the column object without going through the rows to remove the corresponding cell in each one could put the table structure in an inconsistent state.