From: Julian Smart Date: Tue, 22 Sep 2009 16:36:58 +0000 (+0000) Subject: Fix for #4696: added SetDefaultStyleToCursorStyle() to SetInsertionPoint() so style... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/4427f297a61887e0161fdf7a40b545620d19061c?ds=sidebyside Fix for #4696: added SetDefaultStyleToCursorStyle() to SetInsertionPoint() so style is taken from context, not the style at a previous location. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62021 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/richtext/richtextctrl.cpp b/src/richtext/richtextctrl.cpp index c46eafc11a..622a4ef502 100644 --- a/src/richtext/richtextctrl.cpp +++ b/src/richtext/richtextctrl.cpp @@ -2516,6 +2516,8 @@ void wxRichTextCtrl::SetInsertionPoint(long pos) m_caretPosition = pos - 1; PositionCaret(); + + SetDefaultStyleToCursorStyle(); } void wxRichTextCtrl::SetInsertionPointEnd()