From a9fd42ccebb2534cfd3910bc7108171f4ee6d54b Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 29 Apr 2013 12:54:13 +0000 Subject: [PATCH] Add empty paragraph in wxRichTextTable::AddColumns() and AddRows(). Do the same thing in Add{Columns,Rows}() as in CreateTable() to ensure the proper cell creation. Closes #15153, git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73878 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/richtext/richtextbuffer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/richtext/richtextbuffer.cpp b/src/richtext/richtextbuffer.cpp index 53ac73dc22..b68fbfde3c 100644 --- a/src/richtext/richtextbuffer.cpp +++ b/src/richtext/richtextbuffer.cpp @@ -10322,6 +10322,7 @@ bool wxRichTextTable::AddRows(int startRow, int noRows, const wxRichTextAttr& at cell->GetAttributes() = attr; AppendChild(cell); + cell->AddParagraph(wxEmptyString); colArray.Add(cell); } } @@ -10346,6 +10347,7 @@ bool wxRichTextTable::AddColumns(int startCol, int noCols, const wxRichTextAttr& cell->GetAttributes() = attr; AppendChild(cell); + cell->AddParagraph(wxEmptyString); if (startCol == m_colCount) colArray.Add(cell); -- 2.45.2