Fix for slow first character insertion
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53272 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
92ad37af67
commit
bf104bf71b
@ -6291,7 +6291,7 @@ bool wxRichTextAction::Do()
|
||||
|
||||
m_buffer->InsertFragment(GetRange().GetStart(), m_newParagraphs);
|
||||
m_buffer->UpdateRanges();
|
||||
m_buffer->Invalidate(wxRichTextRange(GetRange().GetStart()-1, GetRange().GetEnd()));
|
||||
m_buffer->Invalidate(wxRichTextRange(wxMax(0, GetRange().GetStart()-1), GetRange().GetEnd()));
|
||||
|
||||
long newCaretPosition = GetPosition() + m_newParagraphs.GetRange().GetLength();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user