Fix for #15224: wxRichTextTable: Setting a cell's text colour affects subsequent cells (dghart)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74842 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -10310,6 +10310,9 @@ bool wxRichTextTable::CreateTable(int rows, int cols)
|
||||
{
|
||||
ClearTable();
|
||||
|
||||
wxRichTextAttr cellattr;
|
||||
cellattr.SetTextColour(GetBasicStyle().GetTextColour());
|
||||
|
||||
m_rowCount = rows;
|
||||
m_colCount = cols;
|
||||
|
||||
@@ -10322,6 +10325,8 @@ bool wxRichTextTable::CreateTable(int rows, int cols)
|
||||
for (j = 0; j < cols; j++)
|
||||
{
|
||||
wxRichTextCell* cell = new wxRichTextCell;
|
||||
cell->GetAttributes() = cellattr;
|
||||
|
||||
AppendChild(cell);
|
||||
cell->AddParagraph(wxEmptyString);
|
||||
|
||||
|
Reference in New Issue
Block a user