]> git.saurik.com Git - wxWidgets.git/commitdiff
Take on appropriate paragraph style in the newly created paragraph.
authorJulian Smart <julian@anthemion.co.uk>
Tue, 29 Jul 2008 13:22:33 +0000 (13:22 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 29 Jul 2008 13:22:33 +0000 (13:22 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54809 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/richtext/richtextctrl.cpp

index ff48ec1d7d2b76c01b21f1372bce7da22fa3b324..485aa1e2b123ca0f4d150134f862609933dcb45f 100644 (file)
@@ -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.