From 5ef8ac72f7661dbee17f57b6ec372eac8c6c440d Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Tue, 29 Jul 2008 13:22:33 +0000 Subject: [PATCH] Take on appropriate paragraph style in the newly created paragraph. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54809 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/richtext/richtextctrl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/richtext/richtextctrl.cpp b/src/richtext/richtextctrl.cpp index ff48ec1d7d..485aa1e2b1 100644 --- a/src/richtext/richtextctrl.cpp +++ b/src/richtext/richtextctrl.cpp @@ -2301,7 +2301,7 @@ bool wxRichTextCtrl::WriteImage(const wxBitmap& bitmap, wxBitmapType bitmapType) /// Insert a newline (actually paragraph) at the current insertion point. bool wxRichTextCtrl::Newline() { - return GetBuffer().InsertNewlineWithUndo(m_caretPosition+1, this); + return GetBuffer().InsertNewlineWithUndo(m_caretPosition+1, this, wxRICHTEXT_INSERT_WITH_PREVIOUS_PARAGRAPH_STYLE); } /// Insert a line break at the current insertion point. -- 2.45.2