wxRichTextTable::AddColumns and ::AddRows don't properly create their cells
|Reported by:||dghart||Owned by:|
|Keywords:||wxRichTextTable AddColumns AddRows||Cc:|
When wxRichTextTable::CreateTable creates its cells, it gives each an empty paragraph. wxRichTextTable::AddColumns and wxRichTextTable::AddRows don't. This causes problems, as can be seen in the attached diffs to the richtext sample:
richtext1.diff uses CreateTable() followed by table->AddColumns(). The space for the new cells can be seen, but the cells have no border and can't be entered.
richtext1.diff adds a column to the table already present in the sample. For some reason this segfaults in the next line, r.SetFocusObject(NULL).
Both diffs work correctly after uncommenting the section that gives each cell an empty paragraph. The patch does the same thing inside AddColumns() and AddRows().