Ticket #15734 (closed defect: fixed)
wxRichTextCtrl: A floating wxRichTextTable's cells aren't drawn
|Reported by:||dghart||Owned by:||juliansmart|
|Keywords:||wxRichTextTable float range||Cc:|
When a wxRichTextTable floats, all (or all-but-one) of its cells are not drawn. This can be seen in the richtext sample: just give the table either float property. Presumably this happens because a table's cells aren't held in a paragraph, and so aren't collected by the wxRichTextFloatCollector; though even if they were, I suspect it wouldn't work correctly.
I don't know how this should be fixed. Ideally (at least for tables) it would happen at the Layout() stage, but afaict it's delayed until Draw(). Failing that, wxRichTextFloatCollector should take contained objects into account. Least ideal, but perhaps simplest, a object's floating position could be cached in the object and so be available to its contents; I can't see that this is possible at present.