When the focus object changes, the old selection should be
cancelled explicitly to avoid seeing multiple selections until the next refresh. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70203 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
9b794421ae
commit
eadb039ed5
@ -4142,6 +4142,9 @@ bool wxRichTextCtrl::SetFocusObject(wxRichTextParagraphLayoutBox* obj, bool setC
|
||||
wxRichTextParagraphLayoutBox* oldContainer = GetFocusObject();
|
||||
bool changingContainer = (m_focusObject != obj);
|
||||
|
||||
if (changingContainer && HasSelection())
|
||||
SelectNone();
|
||||
|
||||
m_focusObject = obj;
|
||||
|
||||
if (!obj)
|
||||
|
Loading…
Reference in New Issue
Block a user