]> git.saurik.com Git - wxWidgets.git/commitdiff
Text style fix
authorJulian Smart <julian@anthemion.co.uk>
Sun, 3 Dec 2006 10:11:22 +0000 (10:11 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sun, 3 Dec 2006 10:11:22 +0000 (10:11 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43753 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/richtext/richtextctrl.cpp

index 3dcaa1f4ec525c2cc8d1d4ec1c5585d140aa2cbb..749eba3829617a3dc30f5153b7dd7ce5ba2801c6 100644 (file)
@@ -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();