Added wxRICHTEXT_SETSTYLE_RESET SetStyleEx() flag to allow for clearing attributes before setting new ones
SetStyle() now looks up and applies named paragraph or character style Fixed a bug in text entry (taking previous paragraph's style) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43459 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -769,7 +769,7 @@ void wxRichTextCtrl::OnChar(wxKeyEvent& event)
|
||||
DeleteSelectedContent(& newPos);
|
||||
|
||||
wxString str = (wxChar) event.GetKeyCode();
|
||||
GetBuffer().InsertTextWithUndo(newPos+1, str, this, wxRICHTEXT_INSERT_WITH_PREVIOUS_PARAGRAPH_STYLE);
|
||||
GetBuffer().InsertTextWithUndo(newPos+1, str, this, 0);
|
||||
|
||||
EndBatchUndo();
|
||||
|
||||
|
Reference in New Issue
Block a user