From 33dddf589ac77a7911ff0fd79cf9e7e7a9e69e77 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Sun, 3 Dec 2006 10:11:22 +0000 Subject: [PATCH] Text style fix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43753 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 3dcaa1f4ec..749eba3829 100644 --- a/src/richtext/richtextctrl.cpp +++ b/src/richtext/richtextctrl.cpp @@ -2039,7 +2039,7 @@ void wxRichTextCtrl::DoWriteText(const wxString& value, int flags) { wxString valueUnix = wxTextFile::Translate(value, wxTextFileType_Unix); - GetBuffer().InsertTextWithUndo(m_caretPosition+1, valueUnix, this); + GetBuffer().InsertTextWithUndo(m_caretPosition+1, valueUnix, this, wxRICHTEXT_INSERT_WITH_PREVIOUS_PARAGRAPH_STYLE); if ( flags & SetValue_SendEvent ) SendTextUpdatedEvent(); -- 2.45.2