Ticket #15183 (closed defect: fixed)
wxRichTextTable::DeleteColumns doesn't remove the deleted columns
|Reported by:||dghart||Owned by:|
The wxRichTextTable::DeleteColumns implementation has two bugs, the second of which it shares with DeleteRows():
1) It deletes the relevant cell object from each row, but doesn't remove it from the array. This results in a segfault when the table is next laid out.
2) The initial range check is too strict, preventing deletion of the last column or row.
The patch fixes both. A unit-test, that will allow before/after testing, will be attached to a later report in this series, which will probably be #15185.