From: Vadim Zeitlin <vadim@wxwidgets.org>
Date: Mon, 29 Apr 2013 12:54:13 +0000 (+0000)
Subject: Add empty paragraph in wxRichTextTable::AddColumns() and AddRows().
X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a9fd42ccebb2534cfd3910bc7108171f4ee6d54b

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
---

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);